Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 8th, 2008, 05:15 AM
Authorized User
Join Date: Mar 2008
Location: chennai, tamilnadu, India.
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 12:53 PM.

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