mehdi0111
پنج شنبه 21 اسفند 1393, 15:51 عصر
با سلام.برای گریدویو قابلیت paging رافعال کردم،مطابق تصویر زیر قتی بر روی دکمه ویرایش کلیک میکنم تا آن ردیف به حالت ویرایش دربیاید،به حالت ویرایش نمی رود،البته کد زیر برای صفحه اول گریدویو درست کار میکند ولی برای صفحه دوم کار نمیکند؟لطفا راهنمایی کنید؟
129383
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == "virayesh")
{
int id = Convert.ToInt32(e.CommandArgument);
GridView gv = (GridView)sender;
gv.EditIndex = id-1;
BindGrid();
}
}
129383
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == "virayesh")
{
int id = Convert.ToInt32(e.CommandArgument);
GridView gv = (GridView)sender;
gv.EditIndex = id-1;
BindGrid();
}
}