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

Binding column appearance

Thread ID:





23493 Jan 13,2005 12:48 PM UTC Jan 13,2005 02:10 PM UTC WinForms 2
Tags: GridControl
Asked On January 13, 2005 12:48 PM UTC

Hello, i have a binding column who works fine, the code is: gbc = this.gdgUtilisateur.Binder.InternalColumns["Fk_Profile"]; gbc.StyleInfo.CellType = "ComboBox"; gbc.StyleInfo.DataSource = dtProfile; gbc.StyleInfo.DisplayMember = "Profile"; gbc.StyleInfo.ValueMember = "Pk_Profile"; gbc.StyleInfo..ShowButtons = GridShowButtons.Hide; Now i want to show the Display Member like a Label (I don''t want the user able to select or change the text in the cell). I try gbc.StyleInfo.CellType = "Label" but it''s the value member that is shown... Is it possible to do that ?

Administrator [Syncfusion]
Replied On January 13, 2005 02:03 PM UTC

You can also set gbc.StyleInfo.Enabled = false; to see if that will serve your needs. (This column would never be able to hold the current cell if you have this setting.) If you do not want to disable the column, then you can handle the CurrentCellStartEditing event. If grid.CurrentCell.ColIndex point to this column, you can set e.Cancel = true.

Replied On January 13, 2005 02:10 PM UTC

Handle the CurrentCellStartEditing and set cancel to true is exactly what i search. Thanks very much.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon