I have a matrix kind datagrid in my WPF application and
I would like to create a two dimensional Array to access the row and column of the datagrid. how to access the datagridcells using 2-dimensional arrays of type bool, since my result will be of type Boolean.
for each [i][j] of this 10 x 10 rows, column array, I have to query
for example
[0][0] = result of one query
[0][1] = result of another query
EDIT
What I have tried
bool[,] cell = new bool[10, 10];
for (int i = 0; i < 10; i++)
{
for(int j= 0; j<10 ;j++)
{
cell[i,j] = (); // what to write here
}
}
bool?cell[i,j] = true;orcell[i,j] = false;or maybecell[i,j] = MyBooleanFunction(i,j);. We really can't make much more of the question.