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

Case sensisitve column bindings

Thread ID:





11045 Feb 21,2004 11:08 PM Feb 22,2004 03:47 AM Windows Forms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On February 21, 2004 11:08 PM

Surprised not to find anyone else asking this question but here goes. Why are column names case sensitive when bound to a datatable whose column names are NOT case sensitive? Example: Change DataBoundSortByDisplayMember sample lines 298 + 299 to: this.productNameColumn.MappingName = "ProductNAME"; this.productNameColumn.StyleInfo.CellValueType = typeof(string); the product column will vanish when the program is ran. I have some XML mapping files that control the columns set, and i''d like those to be case insensitive. MS''s DataGrid does not have this ''problem''. Is there a way to set it to be non case sensitive? -simon

Administrator [Syncfusion]
Replied On February 22, 2004 03:47 AM

In a GridDataBoundGrid, there is no property setting that you can use to make the column MappingNames to be case insensitive. The .Net Framework is not cosistent when it comes to mapping name and case requirement. As you say, you do not have to have exact case with a DataGrid+DataTable. But you do when you use ComboBox+DataSource+DisplayMember+ValueMember.


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