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.

column name case sensitive ?

Thread ID:

Created:

Updated:

Platform:

Replies:

125039 Jul 15,2016 11:18 PM Jul 20,2016 06:13 AM Windows Forms 3
loading
Tags: GridGroupingControl
hieudt
Asked On July 15, 2016 11:18 PM

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 07:36 AM

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 05:11 AM

Thanks!

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

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.

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.

;