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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

how to disable a row in syncfusion grid

Thread ID:

Created:

Updated:

Platform:

Replies:

68178 Sep 11,2007 01:06 PM UTC Sep 12,2007 02:12 AM UTC WinForms 1
loading
Tags: GridControl
ankur
Asked On September 11, 2007 01:06 PM UTC

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

Rajagopal [Syncfusion]
Replied On 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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;