p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Pro Visual Basic 2005 (http://p2p.wrox.com/forumdisplay.php?f=217)
-   -   Radio Button in DataGridView (http://p2p.wrox.com/showthread.php?t=40350)

busterbunny March 24th, 2006 07:58 PM

Radio Button in DataGridView
Anyone know of a good strategy for implementing a radio button into a DataGridView cell that I can read/write values to/from?

2bigfeet23 April 11th, 2006 08:23 AM

Presuming that you haven't already found the answer, what I'd recommend is making that column a template column in the edit columns section of the GridView. Next, select Edit templates, and select the edit item template of the column you just turned into a template column. This gives you access to modify how this cell in this column is displayed when a user opts to edit the data in a row of the grid view. There's probably something like a textbox already listed, which is bound to a datafield. Delete the text box, and add your radio button group, then edit the databindings for the radio button group to match up to the datafield you need.

All times are GMT -4. The time now is 04:51 AM.

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