Hi Mike,
Thanks for using Syncfusion products:
EditItemTemplate controls simply render the control on the column while editing. To make the checkbox to reflect he column values, we have to manually binded the checkbox with the column. Please refer the below code snippet which illustrates this:
$sfwg:GridColumnDescriptor MappingName="Checkbox">
$ItemTemplate>
$asp:CheckBox id="cbTemplate" runat="server" Checked="" AutoPostBack="true">
$/ItemTemplate>
$/sfwg:GridColumnDescriptor>
Note:
Here "$" is used instead of "<"
protected bool GetValue(GridCell container)
{
int val;
Record rowRecord = container.Row.Record;
val = Convert.ToInt32(rowRecord.GetValue("Checkbox"));
if (val == 0)
return false;
else
return true;
}
The GetValue method returns Boolean value depending upon the column values.
Please refer the sample from the below link, which illustrates the above:
http://websamples.syncfusion.com/samples/Grid.Web/6.3.0.6/Grid_Web_Template/main.htmPlease let me know if you have any other concerns.
Regards,
Raji