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

Binding column appearance

Thread ID:

Created:

Updated:

Platform:

Replies:

23493 Jan 13,2005 12:48 PM UTC Jan 13,2005 02:10 PM UTC WinForms 2
loading
Tags: GridControl
sve
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.

sve
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.

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

;