Asp.net 基础设施webdatagrid中的Rowdatabound等价物
我正在寻找asp.net gridview中的rowdata绑定事件。我想达到的是这一点Asp.net 基础设施webdatagrid中的Rowdatabound等价物,asp.net,gridview,infragistics,webdatagrid,Asp.net,Gridview,Infragistics,Webdatagrid,我正在寻找asp.net gridview中的rowdata绑定事件。我想达到的是这一点 e.row.rowtype == datacontrolrowtype.datarow 关于webdata grid的数据绑定事件,但它不起作用,因此如何实现这一点。 关于如何获取行类型及其事件的建议将很有帮助。好的,不是100%确定实现“this”是什么意思,但是。。WebDataGrid提供了这类事件的两个版本,因此无论您尝试什么,都可能需要处理这些事件。 就我所了解的代码行而言,您只对数据行感兴趣,
e.row.rowtype == datacontrolrowtype.datarow
关于webdata grid的数据绑定事件,但它不起作用,因此如何实现这一点。
关于如何获取行类型及其事件的建议将很有帮助。好的,不是100%确定实现“this”是什么意思,但是。。WebDataGrid提供了这类事件的两个版本,因此无论您尝试什么,都可能需要处理这些事件。 就我所了解的代码行而言,您只对数据行感兴趣,并且就我所知,以下行相关事件仅针对数据行触发(根据我的经验,绝对不是针对标题或摘要行):
- 服务器端:当网格绑定到数据源中的记录时引发。您可以在常规控件属性中找到它,或者在标记的顶层添加它,并使用
protected void WebDataGrid1_InitializeRow(object sender, Infragistics.Web.UI.GridControls.RowEventArgs e) { // Use: //e.Row.DataItem //e.Row.DataKey //e.Row.Index }
function test(webDataGrid, evntArgs) { //The data object with all attributes evntArgs.get_dataItem(); //Reference to the actual TR element evntArgs.get_rowElement(); //Returns index of the row inside of its container collection. evntArgs.get_index(); //Returns data key of the row. It is always an array of objects even in a case of a single data key field. evntArgs.get_dataKey(); }