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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

readonly column issue

Thread ID:

Created:

Updated:

Platform:

Replies:

120572 Sep 26,2015 02:49 PM UTC Sep 28,2015 07:40 AM UTC Windows Forms 1
loading
Tags: GridDataBoundGrid(Classic)
ale
Asked On September 26, 2015 02:49 PM UTC

Hello, I need some help with the readonly property, because i'm using this in execution time like this:

 Me.grdActividades.Model.ColStyles("Cantidad").ReadOnly = True 

but in some moment i want that this column be editable again
but i used all these option listed bellow and nothing works the column continues readonly

Me.grdActividades.Model.ColStyles("Cantidad").ResetReadOnly()
 Me.grdActividades.Model.IgnoreReadOnly = True
 Me.grdActividades.Model.ColStyles("Cantidad").ReadOnly = False

Can you help in this issue?
Thanks Greetings

Ing. Alejandro Ortega 

Adhikesevan Kothandaraman [Syncfusion]
Replied On September 28, 2015 07:40 AM UTC

Hi Ale,

Thanks for contacting Syncfusion Support.

To edit the contents of the read only cell, set the Binder.InternalColumns.ReadOnly property value as true. Please refer to the below code example,

Code Example:

//Set the Readonly property for perticular column 

this.gridDataBoundGrid1.Binder.InternalColumns["City"].ReadOnly = true;
this.gridDataBoundGrid1.Binder.InternalColumns["City"].ReadOnly = false;


//To edit the content of the ReadOnly cell on its Activation
this.gridDataBoundGrid1.CurrentCellActivating += gridDataBoundGrid1_CurrentCellActivating;

void Model_QueryCellInfo(object sender, Syncfusion.Windows.Forms.Grid.GridQueryCellInfoEventArgs e)

{

    if(e.ColIndex ==3)

    {

        e.Style.ReadOnly = false;

        e.Handled = true;

    }
}

Sample:
http://www.syncfusion.com/downloads/support/forum/120572/ze/CS-804326302

Regards,
Adhi


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

;