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.

Make cell non-editable

Thread ID:





89731 Sep 3,2009 02:42 PM Oct 16,2009 05:34 AM WPF 4
Tags: GridControl
Andre Slenko
Asked On September 3, 2009 02:42 PM

I tried to use the following statement (this.dgMain.Model[3, 2].IsEditable = false) to make a cell non-editable but it still allows me to edit text in that cell. How do I make a certain cell non-editable?

Andre Slenko
Replied On September 3, 2009 02:55 PM

I got the answer: this.dgMain.Model[3, 2].ReadOnly = true;

Mohamed Suhaib Fahad A. [Syncfusion]
Replied On September 7, 2009 02:50 AM

Hi Andre,

Thanks for your feedbacks.

Grid.WPF Team
Syncfusion Inc.,

Rafael Huapaya
Replied On September 29, 2009 03:02 PM

Private Sub GridDataControl_Loaded(ByVal sender As Object, ByVal e As System.Windows.RoutedEventArgs) Handles gdcActivos.Loaded
Dim grid As Syncfusion.Windows.Controls.Grid.GridDataControl = CType(sender, Syncfusion.Windows.Controls.Grid.GridDataControl)

grid.Model(grid.Model.RowCount - 1, 2).Enabled = False

End Sub

Mohamed Suhaib Fahad A. [Syncfusion]
Replied On October 16, 2009 05:34 AM

Hi Rafael,

Thanks for your post, that is also one way to do it.



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.

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.