C#-----DataGrid的使用

一、獲取DataGrid中的行數app      DataGrid1.VisibleRowCount;this   二、獲取DataGrid中選中的行索引      dataGrid1.CurrentRowIndex  (獲取選中行的索引) string 三、獲取DataGrid中選中的行裏某個單元格的值table      //第二列的值 列索引和行索引都從0開始tab      string
相關文章
相關標籤/搜索