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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

column name case sensitive ?

Thread ID:

Created:

Updated:

Platform:

Replies:

125039 Jul 16,2016 03:18 AM UTC Jul 20,2016 10:13 AM UTC WinForms 3
loading
Tags: GridGroupingControl
hieudt
Asked On July 16, 2016 03:18 AM UTC

Hi, my code:

BindingSource.DataSource = Data;
BindingSource.DataMember = "Table";
grd.DataSource = BindingSource;
grd.TableDescriptor.Columns["customer"].HeaderText = "CUS.";

When load, it getting error "Object reference not set to an instance of an object."

I found that in "Table", column name is "Customer", not "customer", so how I  use case insensitive ?

Thanhks!

Anish George [Syncfusion]
Replied On July 18, 2016 11:36 AM UTC

Hi Hieudt, 

Thank you for using Syncfusion products. 

In GridGroupingControl, there is no property setting that you can use to make the column MappingNames to be case insensitive. The .Net Framework is not consistent when it comes to mapping name and case requirement. Hence we request you to use the same column names while customizing the columns. 

Regards, 
Anish. 


hieudt
Replied On July 19, 2016 09:11 AM UTC

Thanks!

Anish George [Syncfusion]
Replied On July 20, 2016 10:13 AM UTC

Hi Hieudt,  
  
Thank you for your update. 
  
Please let us know if you need any further assistance. 
  
Regards, 
Anish 


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

;