protected void gridView_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
Gen_Lic_Grid.PageIndex = e.NewPageIndex;
Gen_Lic_Grid.DataSource = //<-- what should be written here?
Gen_Lic_Grid.DataBind();
}
before this code you must bind your gridview. and it must be in separate function and call that function in this code block.,