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

DataBinding GridDropDownColumn

1 Answer 170 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Lars
Top achievements
Rank 1
Lars asked on 19 Mar 2009, 10:29 AM
We have a grid that we bind to a dataset where each row has a status (expired, new, updated, etc).  These are stored in the database with the first letter (e, n, u, etc). 

In our grid we would like to display these as e, n or u, but in the edit form we would like to display a dropdown containing the full representation (expired, new, updated, etc). 

Since there are only a limited number of possible datavalues in the dropdown we would like to declare these as an array of ListItems and set it as the datasource of the dropdown. Hopefully we would be able to do it from codefront :)

Cheers!

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 20 Mar 2009, 11:13 AM
Hello Lars,

You can check out the section "Customizing the options for GridDropDownColumn on editing" in the following help document which explains on how to customize the options of the dropdownlist when the GridDropDownColumn is in edit mode.
Customize/Configure GridDropDownColumn

Thanks
Princy.
Tags
Grid
Asked by
Lars
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or