您当前的位置: 首页 > 

衣舞晨风

暂无认证

  • 0浏览

    0关注

    1156博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Dev gridcontrol获取选定行,指定列单元格的内容

衣舞晨风 发布时间:2014-03-25 20:39:06 ,浏览量:0

//mOIDFiledName为要获取列的列名
private string GetSelectOID(string mOIDFiledName)
{
    int[] pRows = this.gridView1.GetSelectedRows();//传递实体类过去 获取选中的行
    if (pRows.GetLength(0) > 0)
        return gridView1.GetRowCellValue(pRows[0], mOIDFiledName).ToString ();
    else
        return null;
}
小注:         获取GridView中所有的选中的行号

        int[] iRowId = this.gridData.gridView1.GetSelectedRows();

作者:jiankunking 出处:http://blog.csdn.net/jiankunking

关注
打赏
1647422595
查看更多评论
立即登录/注册

微信扫码登录

0.0390s