Hi,
I have tested this code and it works.
Can you try it ?
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><script runat="server">
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
GridView1.RowCreated += new GridViewRowEventHandler(GridView1_RowCreated);
}
protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowIndex == -1) return;
e.Row.ID = "Row" + e.Row.RowIndex;
}
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
if (!IsPostBack)
{
GridView1.DataSource = new string[] { "hello", "world" };
GridView1.DataBind();
}
}
</script>
<html xmlns="
http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager runat="server" ID="SM1" />
<asp:UpdatePanel runat="server" ID="UP1">
<ContentTemplate>
<asp:GridView runat="server" ID="GridView1">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<CuteWebUI:UploadPersistedFile ID="Uploader1" runat="server" InsertButtonID="Button1" />
<asp:TextBox runat="server" ID="TextBox1"></asp:TextBox>
<asp:Button runat="server" ID="Button1" Text="Browse" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
</form>
</body>
</html>
Regards,
Terry