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;
}
希望本文所述代码对大家有所帮助!
热门推荐
4 祝福语简短古诗词
10 婚礼明星的祝福语简短
11 美丽晚霞祝福语简短句
12 开店大吉文案祝福语简短
13 婚礼祝福语简短精辟的
14 幼教专干调动祝福语简短
15 妹妹生日祝福语简短唯美
16 生女儿的祝福语简短
17 宝宝新生入学祝福语简短
18 少先队代表送祝福语简短