2012-01-05 69 views
1

相关的GridView从数据库中我已经GridView控件绑定..问题在ASP.net

我有下面的代码:当用户选择了一些

protected void Page_Load(object sender, EventArgs e) 
    { 
     BindGrid(); 
    } 

现在,我有checkBoxdrop-down GridView控件,里面从复选框,并单击行上Update ButtonPage_Load事件触发,并呼吁BindGrid();方法和选择的行应该得到隐藏。

如何在页面加载事件后保留复选框值。

我不想用IsPostBack财产在页面加载,因为我已经使用寻呼。

我怎样才能解决我的问题?

回答

2

制作使用的IsPostBack的..从pagaing事件

function of paging event 
{ 
BindGrid(); 
}