Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bind RadioButtons to Y/N
Message
From
11/05/2005 16:14:56
 
 
To
11/05/2005 12:05:46
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01012941
Message ID:
01013147
Views:
19
Joe,

You're not getting many takers on this question, are you? <g>

Personally, I'm not crazy about Radio Buttons in .NET (and haven't really used them). I think though, in your case, this really should be done with a CheckBox. Either way, you can't really bind to the control because of it being a string field. If I were doing this I would either mess with setting the .Checked property of a CheckBox depending on "Y" or "N", or add a boolean field to the DataTable, set it accordingly and bind to that.

~~Bonnie


>I have 2 RadioButtons (inside a Group Box).
>One button is for Yes and the other button is for No.
>How might I bind these to a SQL Server Char(1) field having values of 'Y' and 'N'?
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Reply
Map
View

Click here to load this message in the networking platform