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

Using GridDataControl & trying not to break MVVM pattern.

Thread ID:

Created:

Updated:

Platform:

Replies:

131365 Jul 6,2017 04:30 PM UTC Jul 9,2017 06:50 PM UTC WPF 1
loading
Tags: GridDataControl
Zeljko Lazic
Asked On July 6, 2017 04:30 PM UTC

So I have a very simple application to demonstrate what I'm trying to accomplish. Specifically, I have my GridDataControl bound to a DataTable object that's being initialized in the ViewModel constructor (in the real application the DataTable is different each time the ViewModel instance is created).

Because the columns could be different I can't setup formatting in the XAML code.

Is it possible to bind this column specific information to a collection?



Attachment: Testing001_49feaa58.zip

Srinivasan Vasu [Syncfusion]
Replied On July 9, 2017 06:50 PM UTC

Hi Lazic, 
 
Thanks for contacting Syncfusion support. 
 
We have checked your query and you can bind the column with specific information to GridDataControl by using GridDataControl.QueryCellInfo event in runtime. In QueryCellInfoCommand is used to allow customization of each cell in the specified format. QueryCellInfo accepts an argument of type GridQueryCellInfoEventArgs. The GridQuerryCellInfoEventArgs contains the following customization properties. Now you can make use of this, 
 
Cell – Gives the cell co-ordinates. 
 
Style – Specifies the style for the cell represented by the above cell property. 
 
Please refer the below UG Link: 
 
 
Also, we have checked the provided sample and but we didn’t find GridDataControl anywhere in the project.  
 
 
Regards, 
Srinivasan 


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

;