The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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
ADAdministrator Syncfusion Team 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.