This is a migrated thread and some comments may be shown as answers.

[Solved] change the databinded value dynamically of a datagridviewcolumn

3 Answers 186 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
meena
Top achievements
Rank 1
meena asked on 20 Jul 2011, 10:25 AM
Hi,

I have a radgridview itemsource binded to a collection and each datagridview column having data member binding. I need to change one of the columns value dynamically based on certain condition, like one of the column is binded to temperature and its value needs to be changed based on an unit selection(metric/imperial units) , is it possible to incorporate the conversion of unit logic and binding the changed temperature parameter dynamically in xaml to the rad gridview data column?

3 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 20 Jul 2011, 11:18 AM
Hi Meena,

How would you do this with the stock DataGrid?

Best wishes,
Ross
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
meena
Top achievements
Rank 1
answered on 20 Jul 2011, 05:15 PM
Hi,

Stock data grid? Are you asking me to use this .Is this a solution or question?
0
Rossen Hristov
Telerik team
answered on 21 Jul 2011, 06:26 AM
Hello Meena,

My point was that this question is not very related specifically to Telerik controls. So, theoretically speaking, if you were using the stock DataGrid that has the same API and same functionality as RadGridView, how would you create this unit conversion facility?

If you want to change the value inside a cell, you have to edit the data item and accept the changes. You can do this programmatically as described in our documentation. As for the conversion of units, it would be up to you to implement this converions logic, since it really falls out of our scope.

Here is the help topic that describes how to programmatically edit values.

I hope this helps.

Greetings,
Ross
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
GridView
Asked by
meena
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
meena
Top achievements
Rank 1
Share this question
or