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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Set defalut value for checkbox in gridGroupingControl

Thread ID:





32910 Aug 10,2005 05:58 AM UTC Aug 10,2005 07:47 AM UTC WinForms 1
Tags: GridControl
Prathima Venkobachar
Asked On August 10, 2005 05:58 AM UTC

Hi, I have checkbox column in a gridGroupingControl.I want to set the value of the checkbox checked on load of the form. How can I do it..? I tried to set as below..but it is not working. GridTableCellStyleInfo checkBoxStyle = new GridTableCellStyleInfo(); checkBoxStyle.CellValueType = boolType; checkBoxStyle.CellType = CHECKBOX_TYPE; checkBoxStyle.BackColor = Color.White; checkBoxStyle.CellValue = "True"; checkBoxStyle.Borders.All = new GridBorder( GridBorderStyle.None ); Thanks, Prathima

Administrator [Syncfusion]
Replied On August 10, 2005 07:47 AM UTC

You have to set the value in your datasource. Or, you have to get the GridRecord of the record object whose boolean field value you want to set, and use record.SetValue to set its value. If you want to so this to all records, after setting the DataSource to the grid, you can loop through grid.Table.Records and call record.SetValue on each record.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon