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

Dropdown in insert/edit mode

1 Answer 133 Views
Grid
This is a migrated thread and some comments may be shown as answers.
MSHADroo
Top achievements
Rank 2
MSHADroo asked on 28 Apr 2011, 03:49 PM
hi

i have a problem whit radgrid in insert/edit mode!
i want in edit and insert mode see a dropdown box for a column that show all avilable string in the database table.

for example:
i have a course table whit courseid and coursename
and lesson table whit lessonid , lessonname , courseid(FK)

the radgrid will show the coursename and lessonname from a innerjoin of tables in datasource

now i want when click on insert or edit , see a dropdown box for coursename that show all avilable row in course table.

whit thanks

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 02 May 2011, 10:57 AM
Hello Mshad,

 One suggestion is you can use GridDropDownColumn and bind it from code behind in normal and edit/insert mode.Check the following documentation for more details.
Customize/Configure GridDropDownColumn.

Another option is to use DropDownList in EditItemTemplate of GridTemplateColumn(which will show DropDownList in edit/insert mode)
The following documentation shows how to achieve this.
Operations with MS DropDownList in EditItemTemplate of GridTemplateColumn
Tags
Grid
Asked by
MSHADroo
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Share this question
or