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.

SfDataGrid, dynamic changes on cells and columns

Thread ID:

Created:

Updated:

Platform:

Replies:

108104 Apr 3,2013 12:32 PM Apr 28,2014 05:22 PM WinRT 2
loading
Tags: SfDataGrid
thimonnier
Asked On April 3, 2013 12:32 PM

I have a SfDataGrid bound to a collection.

Depending a dropdown selection i bind the grid to other collections  with differents colums and value types. Collections format is only known at run time. Cells values are updated once per second.

This part is almost running. I just need to make some cosmetic actions, such as changing display format or changing background cells color when values are updated inside.

 Actually i'm not using any templates, but I just create columns when discovering the binded collection.

 for (int i = 0; i < data.Count; i++)

{

   GridTextColumn c = new GridTextColumn();

   c.MappingName = string.Format("[{0}]", i);

   c.HeaderText = columnNames[i];

   activeColumns.Add(c);

}

 

Thanks in advance for any help.

 

 

 


Prakash Selvaraj [Syncfusion]
Replied On April 8, 2013 06:35 AM

Hi Thimonnier,

 

Thank you for choosing Syncfusion Products.

 

We have analysed your query, you can achieve your requirements by defining the DataTemplate in GridTemplateColumn. We have prepared a simple sample based on your requirements. In that sample we have used one attached property and storyboard within the data template to highlight the value when it is dynamically changed. Kindly refer the below sample.

 

Sample Location: SfDataGrid.zip

 

Please let us know if you need further assistance.

 

Regards,

Prakash S.


akhor
Replied On April 28, 2014 05:22 PM

Prakash, could you, please, attach this sample again? I cannot to download it.

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.

;