DevExpress实现根据行,列索引来获取RepositoryItem的方法
本文实例讲述了DevExpress实现根据行,列索引来获取RepositoryItem的方法,具体方法如下:
主要功能代码如下:
///<summary> ///根据行,列索引来获取RepositoryItem ///</summary> ///<paramname="view">GridView</param> ///<paramname="rowIndex">行索引</param> ///<paramname="columnIndex">列索引</param> ///<returns>RepositoryItem</returns> publicstaticRepositoryItemGetRepositoryItem(thisGridViewview,introwIndex,intcolumnIndex) { GridViewInfo_viewInfo=view.GetViewInfo()asGridViewInfo; GridDataRowInfo_viewRowInfo=_viewInfo.RowsInfo.FindRow(rowIndex)asGridDataRowInfo; return_viewRowInfo.Cells[columnIndex].Editor; }
希望本文所述代码对大家有所帮助!