Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old May 8th, 2008, 05:15 AM
Authorized User
Join Date: Mar 2008
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to vgsgowrisankar
Default DataBinding with Radiobuttons

 Hi ,
           i am woking with c#.net window application with sql server sir. By executing the stored procedure i got the records in dataset . so i want to bind the data with my form
          controls , like textbox ,checkbox, radiobuttons.

for example

 txt_StudentID.DataBindings.Add("Text", ds.Tables["stu"], "stuid");
 txt_FirstName.DataBindings.Add("Text", ds.Tables["stu"], "sfname");

but i want to bind the one field into the radio button.

 ie, in a recordset i have one field for gender with varcchar(1) data type.

it may be 'M' or 'F' . so my requirement is if it 'M' the first radiobutton want to select else if its 'F' the second radiobutton want to select.

Thank you

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to pull values from dynamic radiobuttons kwilliams ASP.NET 2.0 Professional 0 November 14th, 2008 11:54 AM
Using Radiobuttons Andrew.Berry ASP.NET 2.0 Professional 6 April 18th, 2008 10:29 AM
Assigning radiobuttons hydra14 C# 7 June 5th, 2004 12:25 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.