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.

Binding column appearance

Thread ID:





23493 Jan 13,2005 07:48 AM Jan 13,2005 09:10 AM Windows Forms 2
Tags: GridControl
Asked On January 13, 2005 07:48 AM

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 09:03 AM

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 09:10 AM

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.

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.