AD
Administrator
Syncfusion Team
November 15, 2006 06:13 AM UTC
Hi Manpreet,
You can handle the Model.QueryCellInfo event and set the Style.Readonly property to "true" for readonly cells. Here is a code snippet.
private void Model_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e)
{
if( e.RowIndex % 2 == 0
&&( e.ColIndex == 2 || e.ColIndex == 3))
{
e.Style.ReadOnly = true;
e.Style.BackColor = Color.AliceBlue;
}
}
Sample : http://www.syncfusion.com/Support/user/uploads/GDBGReadOnly_f50247c8.zip
Best Regards,
Haneef