User2091173246 posted
Hi,
I have a gridview with paging option
protected void gwActivity_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
gwActivity.PageIndex = e.NewPageIndex;
BindGridviewActivity();
}
I rebound the gridview when a new page is set.
however there is an issue with Rowcommand when paging.
protected void gwActivity_RowCommand(object sender, GridViewCommandEventArgs e)
{
{
GridViewRow row = ((e.CommandSource as Control).NamingContainer as GridViewRow);
txtActivity.Text = row.Cells[2].Text;
ddlStatus.SelectedValue = row.Cells[4].Text;
}
}
object reference not set to an instance of an object
i do not know what to do here?
THIS HAS BEEN SOLVED!