Hi Tufan,
Thank you for using Syncfusion products.
Your requirement to add checkbox with string in header of the grid without “GridColumnDescriptor” and “HeaderTemplate” can be achieved through “QueryCellStyleInfo” which is used to add
Checkbox with string at header. Please refer the following code snippet:
[code behind C#]
void GridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
{
if (e.TableCellIdentity.TableCellType == GridTableCellType.ColumnHeaderCell)
{
CheckBox Check = new CheckBox();
Check.ID = "Check";
Check.Text = e.Style.Text;
HTemplate Temp = new HTemplate(Check);
e.TableCellIdentity.Column.HeaderTemplate = Temp;
}
}
For your convenience, we have created the sample and it can be download from below link:
http://www.syncfusion.com/downloads/Support/DirectTra/8543/gridcombo sample744895052208402570.zip
Please let us know if any concerns.
Regards,
Yogesh R