Hello,
I am using asp.net 2005 c# using gridview control.
How can i delete particular row from gridview.
I wrote following code but it's not working...
DataRow dr = dtPrf_Mstr.NewRow();
dtPrf_Mstr.Rows.Add(dr);
GVGLCode.DataSource = dtPrf_Mstr;
GVGLCode.DataBind();
int iCount = GVGLCode.Rows.Count;
for (int i = 0; i <= iCount; i++)
{
GVGLCode.DeleteRow(i);
}
GVGLCode.DataBind();