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. Image for the cookie policy date

Case sensisitve column bindings

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

1 Reply

AD Administrator Syncfusion Team February 22, 2004 08:47 AM UTC

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.

Loader.
Live Chat Icon For mobile
Up arrow icon