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

Unable to disable particular row in GridDataBoundGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

110473 Aug 6,2013 05:26 AM UTC Aug 8,2013 05:42 AM UTC WinForms 1
loading
Tags: GridControl
Ruby
Asked On August 6, 2013 05:26 AM UTC

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

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

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

;