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

GridDataVisibleColumn Binding.

My question is why you use:
 
<syncfusion:GridDataVisibleColumn HeaderText="Zip Code" MappingName="ZipCode">

Instead of :

<syncfusion:GridDataVisibleColumn HeaderText="Zip Code"  MappingName="{Binding ZipCode}">

I think this is a bad idea when we change these properties in our view model.
Can you tell me more about it? please.

1 Reply

RG Rajasekar G Syncfusion Team March 19, 2013 03:06 AM UTC

Hi Asad,

 

Thank you for using Syncfusion products.

 

We have analyzed your query. Could you please share in which purpose do you want to bind the MappingName to the GridDataVisibleColumn That would be very helpful for us to further analysis .And also you can bind the property in the underlying collection to GridDataVisibleColumn while loading GridDataControl by using the following code snippet.

 

Code snippet[Xaml]:

<syncfusion:GridDataVisibleColumn Binding="{Binding CustomerID}" HeaderText="CustomerID">                    

</syncfusion:GridDataVisibleColumn>

 

For your reference here we have attached a simple sample and you can download the sample from the following location.

 

Sample: GridDataControlSample.zip

 

Please let us know if you have any questions

 

Regards,

Raja sekar.G


Loader.
Up arrow icon