閱讀902 返回首頁    go 技術社區[雲棲]


Dev gridcontrol獲取選定行,指定列單元格的內容

//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();

最後更新:2017-04-03 12:55:50

  上一篇:go AndroidStudio0.5.2 BUG 導致 menu 菜單鍵崩潰
  下一篇:go DevExpress GridControl複合表頭(多行表頭)設置