We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Single Select RadioButton column

Hi -
I am using the GridControl, version 5.2.0.25.
I want to have a column with each row containing one radiobutton which behave as a grouping or a single selection column. Only one radiobutton can be selected at a time, setting one clears the previous selected radiobutton.

Do you have any samples demonstrating how to manage the single selection behavior?

Thanks,
Julie


4 Replies

AD Administrator Syncfusion Team April 9, 2008 05:51 AM UTC

Hi Julie,

Thank you for your interest in Syncfusion products.

Please refer the following forum thread that discusses about "How to set a column with each row containing one Radiobutton which behave as a grouping or a single selection column"

http://www.syncfusion.com/Support/Forums/message.aspx?&MessageID=49743

Please have a look the above forum thread and let me know if this helps.

Regards,
Jisha



JL Julie Levy April 9, 2008 11:24 PM UTC

Thanks for your response. This works just fine. One more minor question. My radiobutton will not have any text. How can i create the cell with the radiobutton in the center? It seems to move based on the text alignment even if there is no text!
Thanks,
Julie



JJ Jisha Joy Syncfusion Team April 10, 2008 10:39 AM UTC

Hi Julie,

Thank you for your update.

You can make use of the BorderMargins property to do this.

Please refer the code:


this.gridControl1[4, 2].BorderMargins.Left = 50;
this.gridControl1[4, 2].BorderMargins.Right =150;


Kindly try this and let me know if this helps.
Regards,
Jisha



JL Julie Levy April 10, 2008 11:06 PM UTC

thanks!


Loader.
Live Chat Icon For mobile
Up arrow icon