Re: edititemtemplate datagrid problem
- From: "Scott Mitchell [MVP]" <mitchell@xxxxxxxxxxxxxxxxxx>
- Date: Sun, 18 Sep 2005 23:28:07 GMT
marty.overdear@xxxxxxxxxxxxxx wrote:
I have a datagrid being populated by a datasource. I decided to change one of the of the display fields in the datagrid to a dropdownlist. I am trying to do it using edititemtemplate. The data for this row no longer gets populated like it did for the regular datagrid. What do I have to do extra to get it to populate??
You have to write code to populate the DDL with the list of applicable choices AND to assign the DDL's SelectedIndex to the correct value for the record being edited. It's not a trivial task, unfortunately. However, this article may help:
http://aspnet.4guysfromrolla.com/articles/080702-1.aspx
Another, easier, option is to use MetaBuilder.com's *free* BoundLookupColumn control:
http://metabuilders.com/Tools/BoundLookupColumn.aspx
hth
--
Scott Mitchell [ASP.NET MVP]
mitchell@xxxxxxxxxxxxxxxxxx
http://www.4GuysFromRolla.com/ScottMitchell
.- References:
- edititemtemplate datagrid problem
- From: marty . overdear
- edititemtemplate datagrid problem
- Prev by Date: edititemtemplate datagrid problem
- Next by Date: Re: Problem Printing using IWebBrowser2 from IWAM Account on Server 2003
- Previous by thread: edititemtemplate datagrid problem
- Index(es):
Relevant Pages
|