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

SfDataGrid, dynamic changes on cells and columns

Thread ID:





108104 Apr 3,2013 04:32 PM UTC Apr 28,2014 09:22 PM UTC WinRT 2
Tags: SfDataGrid
Asked On April 3, 2013 04:32 PM UTC

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];




Thanks in advance for any help.




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

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.



Prakash S.

Replied On April 28, 2014 09:22 PM UTC

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


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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