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

[Solved] Different type of columns in each row of Gridview

1 Answer 118 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.
Nikhil Thaker
Top achievements
Rank 1
Nikhil Thaker asked on 23 Dec 2010, 10:23 AM
Hi,

I have list of entity having five properties..
1.> Name
2.> Type
3.> Value
4.> DefaultValue
5.> List Values

Now in Value column I have to show the controls according to its Type..
Like if type is Dropdown then  I have to show drop down in value column in that perticular row and if the type is checkbox then I have to show checkbox to user for taking input from the user. Then i need to set the "DefaultValue" for that control and need to set dropdown "ListValues" if Type is Dropdown..

And finally whatever user will input into value (using Drop down, checkbox, textbox, or timepicker), i have to save those values to database..
So how i can do that with Telerik gridview..?

Thanks in advance..

1 Answer, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 23 Dec 2010, 04:46 PM
Hello Nikhil,

 
Considering your particular case you need to use DataTemplateSelectors. In this way you will be able to return the template you need based on custom conditions. You can check the following demos:
  DataTemplateSelectors/Cells
  DataTemplateSelectors/Cells in edit mode

Greetings,
Vanya Pavlova
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
GridView
Asked by
Nikhil Thaker
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Share this question
or