Thursday, January 3, 2008

How to Clear GridView Quickly

If you need to completely clear a GridView quickly, write the following code:

protected void ClearGrid(GridView gv)
{
    gv.DataSource = null;
    gv.DataSourceID = null;
    gv.DataBind();
}

Hire Me

Follow me on Facebook

Follow me

Do you find this Blog helpful?

Follow by Email

About Me

My Photo
Expert Senior Software Developer

Microsoft Business Card