Hi Walter,
Thanks for using Syncfusion products.
We have analyzed your query with our sample and your requirement can be achieved by handling QueryCellInfo event, please find below code snippet to achieve your requirement.
Code Snippet[C#]:
void Model_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e)
{
if (e.Cell.RowIndex > 0 && e.Cell.ColumnIndex == 1)
{
if (e.Style.CellValue == "true" || e.Style.CellValue == "false")
{
e.Style.CellType = "CheckBox"; // Setting celltype as checkbox
e.Style.IsThreeState = false;
}
else
{
e.Style.Enabled = false; //To Disable the cell.
e.Style.CellValue = ""; //To display as empty cell.
}
}
}
|
We have also prepared sample based on your requirement and it can be downloaded from below location.
Sample Location: 105654ForumSample.zip
Please let us know if you have any queries.
Thanks,
Kannan.R