Possible Duplicate:
WPF DataGrid: How do you iterate in a DataGrid to get rows and columns?
I have a WPF DataGrid. I want to iterate all cells in Datagrid.
Give me a simple code to do that.
Like this
for(int i =0 ....) //rows
{
for(int j=0 ....) //columns
{
//access cell
}
}
//assuming that grid is bind to observable collection of some info class