Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Radio button inside grids Collapse All
Subject Author Date
Anil Siddhpura Oct 3, 2009 - 12:58 AM


I have created grid and inside that i created several radiobutton using CExtCellRadioButton.

For example say there are 5 radio buttons, now as radiobutton functions, it should be selected only one radio button at a time. Imean when you select one radio button the others must be disselected.

But in this i can select all of the radio button at a time.

So how can i enable the functionality that it should select only one radio button & disselect all the others automatically?

Technical Support Oct 6, 2009 - 1:21 PM

We coded a small test project for you:

Anil Siddhpura Oct 7, 2009 - 5:51 AM


Thanks for the reply.

But how can i defferentiate between checkbox and radiobutton. I want that functionality only in radiobuttons. In that overridden function what shold i check for radiobutton?

Technical Support Oct 7, 2009 - 11:33 AM

You can check the run-time classes of the grid cells in your grid window. Or you can check the cell locations (row and/or column indices).

Technical Support Oct 5, 2009 - 8:08 AM

The grid control always assumes each grid cell is individual and not linked with any other. The checked state changing can be handled in the CExtGridCell::OnSetCheck() virtual method or in the CExtGridWnd::OnGridCellSetCheck() virtual method. For instance, you can implement the CExtGridWnd::OnGridCellSetCheck() virtual method in your CExtGridWnd-derived class and un-check one radio button when other becomes checked by user.

Anil Siddhpura Oct 6, 2009 - 12:34 AM


Can you show me that with an example?