G
Guest
I have a DataGrid populated with some data. In the grid, I have placed a
DropDownListBox.
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
EAST.
Any idea on how to resolve this error?
<asp:TemplateColumn HeaderText="Division">
<EditItemTemplate>
<aspropDownList id=DropDownList2 runat="server" Width="171px"
DataValueField='<%# DataBinder.Eval(Container,"DataItem.str_divn") %>'
DataTextField='<%# DataBinder.Eval(Container,"DataItem.str_divn") %>'
DataSource ='<%# GetLibraryItems() %>'>
</aspropDownList>
</EditItemTemplate>
</asp:TemplateColumn>
DropDownListBox.
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
EAST.
Any idea on how to resolve this error?
<asp:TemplateColumn HeaderText="Division">
<EditItemTemplate>
<aspropDownList id=DropDownList2 runat="server" Width="171px"
DataValueField='<%# DataBinder.Eval(Container,"DataItem.str_divn") %>'
DataTextField='<%# DataBinder.Eval(Container,"DataItem.str_divn") %>'
DataSource ='<%# GetLibraryItems() %>'>
</aspropDownList>
</EditItemTemplate>
</asp:TemplateColumn>