Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > DropDownList in DataGrid

Thread Tools

DropDownList in DataGrid

Posts: n/a
I have a DataGrid populated with some data. In the grid, I have placed a
The DropDownListBox's current item should be retrieved from Dataset 'A'.
However, the items in
the DropDownListBox should be retrieved from another DataSet 'B'.

So, I call a function GetLibraryItems() to return the dataset 'B'.

However, the compiler gives the following error.

DataBinder.Eval: 'System.Data.DataRowView' does not contain a property with
the name CE GULF EAST.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.

Exception Details: System.Web.HttpException: DataBinder.Eval:
'System.Data.DataRowView' does not contain a property with the name CE GULF

Any idea on how to resolve this error?

<asp:TemplateColumn HeaderText="Division">
<aspropDownList id=DropDownList2 runat="server" Width="171px"
DataValueField='<%# DataBinder.Eval(Container,"DataItem.str_divn") %>'
DataTextField='<%# DataBinder.Eval(Container,"DataItem.str_divn") %>'
DataSource ='<%# GetLibraryItems() %>'>

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
GridView: Filter DropDownList for another DropDownList =?Utf-8?B?SnVhbmpv?= ASP .Net 0 12-29-2005 07:44 AM
GridView: Filtr DropDownList from another DropDownList =?Utf-8?B?SnVhbmpv?= ASP .Net 0 12-23-2005 01:31 PM
databinding a Dropdownlist to another dropdownlist tshad ASP .Net 8 10-19-2005 10:00 PM
Using a data-bind dropdownlist to populate another data-bind dropdownlist mr2_93 ASP .Net 1 10-02-2005 05:07 PM
how do i access a dropdownlists selected value in a datagrid edititemtemplate column from the selectedindexchanged event of another dropdownlist in a datagrid edititemtemplate column Dave M ASP .Net Datagrid Control 0 12-14-2004 11:53 AM