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.
Unfortunately, activation email could not send to your email. Please try again.

Set defalut value for checkbox in gridGroupingControl

Thread ID:





32910 Aug 10,2005 01:58 AM Aug 10,2005 03:47 AM Windows Forms 1
Tags: GridControl
Prathima Venkobachar
Asked On August 10, 2005 01:58 AM

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 03:47 AM

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.

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.