....asp:SqlData Source
SelectCommand=" SELECT userid, status FROM aspnet_Users, UserData WHERE userid = userdataid AND Len(userid ) 2 "
UpdateCommand=" UPDATE UserData SET status = @status WHERE userid = @userid ">
<UpdateParamete rs>
<asp:Paramete r Name="userid " Type="String" />
</UpdateParameter s>
....asp:GridVie w
DataKeyNames="u serid"
....
<asp:TemplateFi eld HeaderText="Sta tus">
<ItemTemplate >
<asp:Label id="label1" runat="server" Text='<%# Eval("Status") %>' />
</ItemTemplate>
<EditItemTempla te>
<asp:DropDownLi st runat="server" ID="ddlStatus"
AppendDataBound Items="true"
SelectedValue=' <%# Bind("status") %>'
DataSourceID= "SqlDataSource1 "
AutoPostBack="F alse" >
<asp:ListItem Text="Open" Value="Open"></asp:ListItem>
<asp:ListItem Text="Closed" Value="Closed"> </asp:ListItem>
</asp:DropDownLis t>
</EditItemTemplat e>
</asp:TemplateFie ld>
"Kevin Goff" <ke********@nos pam.nospamwrote in message news:eF******** ******@TK2MSFTN GP02.phx.gbl...
Can you post the code you use for databinding? You are probably missing something there.
"Jon Paal" <Jon[ nospam ]Paal @ everywhere dot comwrote in message news:%2******** ********@TK2MSF TNGP03.phx.gbl. ..
>this text keeps showing up in my gridview dropdownlist
"System.Data.D ataRowView"
How do I prevent this problem ?