在回发事件Asp.net(C#)中的RowdataBond [英] RowdataBond In postback Event Asp.net(C#)

查看:100
本文介绍了在回发事件Asp.net(C#)中的RowdataBond的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个gridview.在其中的复选框和子标题.如果我单击gridview的复选框,则是完全更改.我需要在发回邮件后调用Rowdatabond.Plzz帮助我的朋友们.

I have a gridview. In there checkbox and subheading. if i click the checkbox formate of the gridview is total changing. I need to call Rowdatabond after post back Plzz help me friends.

推荐答案

我需要在发回邮件后调用Rowdatabond
将行绑定到网格时,将调用RowDataBound.如果由于某种原因(您已经指定了!)要调用该事件,则需要重新绑定网格.

此处的详细信息: MSDN:GridView.RowDataBound事件 [ ^ ]


顺便说一句,我不确定您将如何通过再次致电来解决您的问题.额外的步骤之一:重新绑定后,您将必须重新存储复选框状态.
I need to call Rowdatabond after post back
RowDataBound is called when you bind rows to grid. If for some reason (which you already specified!) you want to call the event then you need to rebind the grid.

Details here: MSDN: GridView.RowDataBound Event[^]


BTW, I am not sure how are you going to resolve your issue by calling it again. One of the extra step: you will have to re-store the checkboxes state once you have re-binded.


这篇关于在回发事件Asp.net(C#)中的RowdataBond的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆