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

Bind column to different field per row, depending on 'selector'-field

1 Answer 78 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Juergen
Top achievements
Rank 1
Juergen asked on 28 Oct 2008, 10:15 AM
Hi, I'm evaluating the trial and one thing we'd like to do is the following:

We'd like to have a db-table with columns e.g. 'intField', 'floatField', 'textField' and a 'type-selector' of type int that is indicating which of the db-columns the grid-column should be bound to, different for each row.

With the MS-DataGridView I could derive a new column hosting a derived cell, and in this cell then just overwrite GetValue and SetValue - more or less... ;-)

I haven't found the necessary overwrites with for RadGridView and friends (yet?), so: how would I do this with the RadGridView?

TIA, Juergen

1 Answer, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 30 Oct 2008, 10:09 AM
Hello Juergen,

Thank you for contacting us and your interest in Telerik WinForms controls.

Unfortunately, there is no way to override these (or similar) functions, because they are internal to the RadGridView. I cannot think of a solution to your scenario implemented in another way. 

Do not hesitate to write me back if you have further questions.
 

Best wishes,
Nick
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
GridView
Asked by
Juergen
Top achievements
Rank 1
Answers by
Nick
Telerik team
Share this question
or