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

Reg : CheckBox Property

Hi, I am using following code to make whole column as checkbox. Code: [sfgDetailedHistory = gridcontrol] this.sfgDetailedHistory.ColStyles[(int)detailedHistoryCols.chkColumn].CellType = "CheckBox"; this.sfgDetailedHistory.ColStyles[(int)detailedHistoryCols.chkColumn].CheckBoxOptions.CheckedValue = "true"; this.sfgDetailedHistory.ColStyles[(int)detailedHistoryCols.chkColumn].CheckBoxOptions.UncheckedValue = "false"; this.sfgDetailedHistory.ColStyles[(int)detailedHistoryCols.chkColumn].CellValueType = typeof(bool); if checkbox is checked i want to change the whole row color.If it is unchecked i want to set old color back. Please give me an event and sample code for that with out painting/repainting problem. Thanks, Anna

3 Replies

AD Administrator Syncfusion Team July 7, 2005 09:18 AM UTC

You can use PrepareViewStyleInfo to colntrol teh color and CurrentCellChanged to trigger teh redraw. http://www.syncfusion.com/Support/user/uploads/GC_CheckBoxColumn_6b6a5110.zip


AS Anna Srinivasan July 7, 2005 12:46 PM UTC

Hi, The example zip removed from the corresponding or not. B'' cause i am getting message like ''page canot be displayed. Help me....!


AD Administrator Syncfusion Team July 7, 2005 01:50 PM UTC

Try this link. http://www.syncfusion.com/Support/user/uploads/GC_CheckBoxColumn_efdf431a.zip

Loader.
Up arrow icon