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

Unable to disable particular row in GridDataBoundGrid

I couldnt disable row in GridDataBoundGrid using GridStyleInfo.Enable function. Its not working inside the event

gridDataBoundGrid1.CheckBoxClick += new GridCellClickEventHandler(gridDataBoundGrid1_CheckBoxClick);

 

Please help me to fix this issue



Form1_ef8d419.zip

1 Reply

AS Athiram S Syncfusion Team August 8, 2013 05:42 AM UTC

Hi Ruby,

Thanks for your interest in Syncfusion Prducts.

You can make use of "PrepareviewStyleInfo" event for disabling a particular row:

Code:

 void gridDataBoundGrid1_PrepareViewStyleInfo(object sender, GridPrepareViewStyleInfoEventArgs e)
        {
            if (e.RowIndex == 2)
                e.Style.Enabled = false;
        }

Please let me know if you have any concerns.

Regards,
Athiram S

Loader.
Live Chat Icon For mobile
Up arrow icon