RadioButtons in a GridGroupingControl cell

Hi,
I'm using 2 Radio buttons inside for a column in my GridGrouping Control and I need to check one or the other value by default based on a column value. Also, If I click on One Radio button and go to the next row, the selection which I made in previous row disappears.

Could you please help me out whether I can have Radio Buttons in GridGrouping control and can manage based on the Database value.

Thanks,
Sanath Vijayakumar

1 Reply

AD Administrator Syncfusion Team December 12, 2006 10:49 AM UTC

Hi Sanath,

Please refer to the attached sample that shows you how to add the radio button in a grid cell and let me know if you are looking something different.
GGCRadioButtonSample.zip

///Sample Code here...
StringCollection sc = new StringCollection();
sc.AddRange(new String[]{"Open","Close"});


//Change the celltype to Radio button.
this.gridGroupingControl1.TableDescriptor.Columns[ "RadioButton" ].Appearance.AnyRecordFieldCell.CellType = "RadioButton";

//Display information for the Radio button.
this.gridGroupingControl1.TableDescriptor.Columns[ "RadioButton" ].Appearance.AnyRecordFieldCell.ChoiceList = sc;

Best Regards,
Haneef

Loader.
Up arrow icon