Ask a Question related to ASP.NET General, Design and Development.
-
Dinky #1
DataRowView
Hi all,
I have got this error when using "DataRowView". Do we
need to put reference to this class somewhere? Or Could
you please point out What is wrong with this HTML?
Thanks
----------------------------------------------------------
Compiler Error Message: CS0246: The type or namespace
name 'DataRowView' could not be found (are you missing a
using directive or an assembly reference?)
Source Error:
Line 78:
</ItemTemplate>
Line 79:
<EditItemTemplate>
Line 80:
<asp:DropDownList runat="server"
SelectedIndex='<%# StateIndex[(String)((DataRowView)
Container.DataItem)["state"]] %>' id="edit_State">
Line 81:
<asp:ListItem>CA</asp:ListItem>
Line 82:
<asp:ListItem>IN</asp:ListItem>
----------------------------------------------------------
It is a dropdown list using in the datagrid control as
follows:
<EditItemTemplate>
<asp:DropDownList runat="server"
SelectedIndex='<%# StateIndex[(String)((DataRowView)
Container.DataItem)["state"]] %>' id="edit_State">
<asp:ListItem>CA</asp:ListItem>
<asp:ListItem>IN</asp:ListItem>
<asp:ListItem>KS</asp:ListItem>
<asp:ListItem>MD</asp:ListItem>
<asp:ListItem>MI</asp:ListItem>
<asp:ListItem>OR</asp:ListItem>
<asp:ListItem>TN</asp:ListItem>
<asp:ListItem>UT</asp:ListItem>
</asp:DropDownList>
</EditItemTemplate>
---------------------------------------------------------
Dinky Guest
-
DataRowView - deleting rows: A little quiz -or- Why doesn't this work...
Can anyone please tell me what is wrong with the following code: I have a datagrid showing data from in a DataView. The following code snippet... -
Dynamic Table Build Using DataRowView
All I'm trying to build a table dynamically from a DataView using IEnumerator. It will be read only data for printing on Avery 5160 label... -
BC30002: Type 'DataRowView' is not defined.
Hi I get this error when I try to run my Page which has nested DataGrid. <asp:DataGrid id=DataGrid2 runat="server" AutoGenerateColumns="False"... -
DataRowView problem
The problem is... I can't seem to use them. When I try to declare one, I get: Compiler Error Message: BC30002: Type 'DataRowView' is not defined.... -
Why do I have to qualify 'DataRowView' with System.Data?
I am getting the error below when I try to use DataRowView in my aspx page. I am using the System.Data in my code behind. I even tried importing... -
Benjie Fallar #2
Re: DataRowView
do you have a namespace reference to System.Data?
"Dinky" <dinh.nguyen@dewr.gov.au> wrote in message
news:07ac01c3467a$29069ec0$a301280a@phx.gbl...> Hi all,
>
> I have got this error when using "DataRowView". Do we
> need to put reference to this class somewhere? Or Could
> you please point out What is wrong with this HTML?
> Thanks
>
> ----------------------------------------------------------
>
> Compiler Error Message: CS0246: The type or namespace
> name 'DataRowView' could not be found (are you missing a
> using directive or an assembly reference?)
>
> Source Error:
>
>
>
> Line 78:
> </ItemTemplate>
> Line 79:
> <EditItemTemplate>
> Line 80:
> <asp:DropDownList runat="server"
> SelectedIndex='<%# StateIndex[(String)((DataRowView)
> Container.DataItem)["state"]] %>' id="edit_State">
> Line 81:
>
> <asp:ListItem>CA</asp:ListItem>
> Line 82:
>
> <asp:ListItem>IN</asp:ListItem>
> ----------------------------------------------------------
> It is a dropdown list using in the datagrid control as
> follows:
>
>
> <EditItemTemplate>
>
> <asp:DropDownList runat="server"
> SelectedIndex='<%# StateIndex[(String)((DataRowView)
> Container.DataItem)["state"]] %>' id="edit_State">
>
> <asp:ListItem>CA</asp:ListItem>
>
> <asp:ListItem>IN</asp:ListItem>
>
> <asp:ListItem>KS</asp:ListItem>
>
> <asp:ListItem>MD</asp:ListItem>
>
> <asp:ListItem>MI</asp:ListItem>
>
> <asp:ListItem>OR</asp:ListItem>
>
> <asp:ListItem>TN</asp:ListItem>
>
> <asp:ListItem>UT</asp:ListItem>
>
> </asp:DropDownList>
>
> </EditItemTemplate>
> ---------------------------------------------------------
>
>
Benjie Fallar Guest



Reply With Quote

