Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 2005 > Pro Visual Basic 2005
| Search | Today's Posts | Mark Forums Read
Pro Visual Basic 2005 For advanced Visual Basic coders working in version 2005. Beginning-level questions will be redirected to other forums, including Beginning VB 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro Visual Basic 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
  #1 (permalink)  
Old March 24th, 2006, 07:58 PM
Registered User
 
Join Date: Mar 2006
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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?
  #2 (permalink)  
Old April 11th, 2006, 08:23 AM
Registered User
 
Join Date: Apr 2006
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.



Similar Threads
Thread Thread Starter Forum Replies Last Post
radio button anwarraja Javascript 3 September 18th, 2007 08:18 PM
radio-button grstad HTML Code Clinic 3 February 28th, 2006 08:32 AM
Radio Button hoailing22 ASP.NET 1.0 and 1.1 Basics 1 June 2nd, 2005 12:08 AM
Button acts depending on radio button values janise Access 4 March 10th, 2004 12:53 AM
radio button damnnono_86 Access 5 October 28th, 2003 02:17 AM





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