B
Ben
Hi,
i'm a little bit confused about the events GridView1_RowDataBound and
GridView1_RowCreated.
1) Which is executed first?
2) if i want to fetch the value of a field using this code:
dim a as string
a = e.Row.Cells(2).Text
in which event do i have to do that?
3) there is a dropdownlist in aspx file embebbed in a template like this:
<asp:TemplateField >
<EditItemTemplate>
<aspropDownList ID="DropDownList1" runat="server" >
</aspropDownList>
</EditItemTemplate>
</asp:TemplateField>
i want to access it with this code:
dim dd as dropdownlist
dd = e.Row.FindControl("DropDownList1")
in which event do i have to do that?
Thanks
Bob
i'm a little bit confused about the events GridView1_RowDataBound and
GridView1_RowCreated.
1) Which is executed first?
2) if i want to fetch the value of a field using this code:
dim a as string
a = e.Row.Cells(2).Text
in which event do i have to do that?
3) there is a dropdownlist in aspx file embebbed in a template like this:
<asp:TemplateField >
<EditItemTemplate>
<aspropDownList ID="DropDownList1" runat="server" >
</aspropDownList>
</EditItemTemplate>
</asp:TemplateField>
i want to access it with this code:
dim dd as dropdownlist
dd = e.Row.FindControl("DropDownList1")
in which event do i have to do that?
Thanks
Bob