码迷,mamicode.com
首页 > 其他好文 > 详细

[DevExpress]根据行,列索引来获取RepositoryItem

时间:2014-07-17 22:31:31      阅读:205      评论:0      收藏:0      [点我收藏+]

标签:style   color   os   width   html   代码   

关键代码:

        /// <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,布布扣,bubuko.com

[DevExpress]根据行,列索引来获取RepositoryItem

标签:style   color   os   width   html   代码   

原文地址:http://www.cnblogs.com/Yan-Zhiwei/p/3851585.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!