I already know proper row index and column index, but I don't know how to get value of intersection of these two.
Asked
Active
Viewed 7,364 times
1 Answers
-5
how about this one :
yourDataGrid[yourDataGrid.CurrentCell.RowNumber, whateverColumnIndex];

Christian Specht
- 35,843
- 15
- 128
- 182

user979014
- 63
- 1
- 5
-
It gives me error: "Cannot apply indexing with [] to an expression of type "System.Windows.Controls.DataGrid". – zelstan Oct 06 '11 at 10:27
-
Im sure this one will work for you now , dataGridView1[0, 0].Value.ToString(); – user979014 Oct 06 '11 at 13:17
-
take a look at this useful link http://msdn.microsoft.com/es-es/library/system.web.ui.webcontrols.datagrid(VS.80).aspx – user979014 Oct 06 '11 at 13:22
-
2Sorry, but I am not working with dataGridView. With DataGrid I can't use []. – zelstan Oct 08 '11 at 07:30