We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

how to disable a row in syncfusion grid

Is their is any way to disable a row in sync fusion grid?

1 Reply

RA Rajagopal Syncfusion Team September 12, 2007 02:12 AM UTC

Hi Ankur,

Thanks for your interest in Syncfusion Products.

You could disable a row by directly setting the Enabled property to false for the GridStyleInfo object of that row (or) you may handle the grid.QueryCellInfo event to disable the row. Below is the code snippet.

this.grid.Model.RowStyles[rowIndex].Enabled = false;

void gridControl1_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e)
{
// disables 3rd row
if (e.RowIndex == 3)
{
e.Style.Enabled = false;
}
}

Let me know if you have any other questions.

Regards,
Rajagopal

Loader.
Live Chat Icon For mobile
Up arrow icon