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

Grid column display path

1 Answer 91 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sean Fuhrmann
Top achievements
Rank 1
Sean Fuhrmann asked on 28 Oct 2008, 07:14 PM
Is there a way to have the grid display a value in the column other than the underlying objects .ToString()?

1 Answer, 1 is accepted

Sort by
0
Atanas
Telerik team
answered on 29 Oct 2008, 08:02 AM
Hi Sean Fuhrmann,

Our default cell editor is TextBox editor that is why in most of our examples the RadGridView control displays
converted to string values of the underlying objects. If you take a closer look at our CardStyleRows example (under GridView\Custom Row Layout) you will notice that our grid supports other ways of displaying values.

If this is not the scenario you are asking for, I recommend you to look at our DataBinding example and select the PropertyPaths datasource where the binding is done without calling the ToStirng() method of the underlying objects.

Sincerely yours,
Atanas
the Telerik team

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