2011-01-19 43 views

回答

2

您可以使用此 -

dataGridView1.Rows["YourRowNumber"].Cells["YourColumnNameOrNumber"].Value; 
+0

通過使用這我得到的文字在這裏不是價值。我想獲得值 而不是我現在使用它現在它工作正常 dataGridView1.Rows [「YourRowNumber」]。Cells [「YourColumnNameOrNumber」]。值 – Nighil 2011-01-19 06:28:51

1

如果通過網格循環,那麼你應該有興趣在獲取組合框單元的FormattedValue的,因爲這將是實際的堅持所選擇的組合框項的值

dataGridView1[colIndex,rowIndx].FormattedValue 
相關問題