2011-10-06 99 views

回答

-2

這個怎麼樣:
yourDataGrid[yourDataGrid.CurrentCell.RowNumber, whateverColumnIndex];

+0

它給我的錯誤:「無法適用與[]索引到的表達鍵入「System.Windows.Controls.DataGrid」。 – zelstan

+0

我確定這個將爲你工作, dataGridView1 [0,0] .Value.ToString(); – user979014

+0

看看這個有用的鏈接 http://msdn.microsoft.com/es-es/library/system.web.ui.webcontrols.datagrid(VS.80).aspx – user979014

相關問題