gooday all..
working with the DataView Control under Visual Web Developer 2005 Express.
DataGrid is databound.
got a template column containing a DropDownList, defined like so:
column's Visible=False till user click Edit then in the GridView1_RowEditing Event, i cgange Visible property to true like so:Code:<asp:TemplateField Visible="False"> <EditItemTemplate> <asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="ddl2source" DataTextField="Status" DataValueField="statusID"> </asp:DropDownList> <asp:SqlDataSource ID="ddl2source" runat="server" ConnectionString="<%$ ConnectionStrings:assetsConnectionString1 %>" ProviderName="<%$ ConnectionStrings:assetsConnectionString1.ProviderName %>" SelectCommand="SELECT assets.amstatus.* FROM assets.amstatus"></asp:SqlDataSource> </EditItemTemplate>so DropDownList is availble to user to select new value for edited row. that works fine.VB Code:
GridView1.Columns(4).Visible = False GridView1.Columns(5).Visible = True
i wish to show DropDownList to user only in the relevant cell of edited row..
something likeor likeVB Code:
GridView1.SelectedRow.Cells(4).Visible = False GridView1.SelectedRow.Cells(5).Visible = TrueVB Code:
Dim mms As TableCell = New TableCell mms = GridView1.SelectedRow.Cells(4) mms.Visible=False
alas, no go there..![]()
any ideas guys? possible task at all?
thanks in advance for any help/ideas.
Happy Friday,




Reply With Quote