手机
当前位置:查字典教程网 >编程开发 >C#教程 >DevExpress实现根据行,列索引来获取RepositoryItem的方法
DevExpress实现根据行,列索引来获取RepositoryItem的方法
摘要:本文实例讲述了DevExpress实现根据行,列索引来获取RepositoryItem的方法,具体方法如下:主要功能代码如下://////根...

本文实例讲述了DevExpress实现根据行,列索引来获取RepositoryItem的方法,具体方法如下:

主要功能代码如下:

/// <summary> /// 根据行,列索引来获取RepositoryItem /// </summary> /// <param name="view">GridView</param> /// <param name="rowIndex">行索引</param> /// <param name="columnIndex">列索引</param> /// <returns>RepositoryItem</returns> public static RepositoryItem GetRepositoryItem(this GridView view, int rowIndex, int columnIndex) { GridViewInfo _viewInfo = view.GetViewInfo() as GridViewInfo; GridDataRowInfo _viewRowInfo = _viewInfo.RowsInfo.FindRow(rowIndex) as GridDataRowInfo; return _viewRowInfo.Cells[columnIndex].Editor; }

希望本文所述代码对大家有所帮助!

【DevExpress实现根据行,列索引来获取RepositoryItem的方法】相关文章:

C#计算代码执行时间的方法

PowerShell 定时执行.Net(C#)程序的方法

C#访问PostGreSQL数据库的方法

C# 运用params修饰符来实现变长参数传递的方法

用C#编写获取远程IP,MAC的方法

C#发送HttpPost请求来调用WebService的方法

解析c#操作excel后关闭excel.exe的方法

自定义实现Json字符串向C#对象转变的方法

C#编程实现Excel文档中搜索文本内容的方法及思路

c#重写TabControl控件实现关闭按钮的方法

精品推荐
分类导航