I have a problem concerning the DataGrid.
This is the Code of what I want to do - but in an ordinary SourceGrid.Grid:
SourceGrid.Cells.Views.Cell yellowView = new SourceGrid.Cells.Views.Cell();
yellowView.BackColor = Color.Yellow;
int selectedRowsIndexArray = grid1.Selection.GetSelectionRegion().GetRowsIndex();
for (int i = 0; i < selectedRowsIndexArray.Length; i++)
grid1[selectedRowsIndexArray[i], 0].View = yellowView;
But now I want do exact the same thing in my DataGrid, but the problem is, that it is not possible to address the Cells directly like
Is there any method I can reach the rows / cells of my DataGrid with their index and change the View of the Cells in DataGrid?
My other question is not as critical for me as the one above: Is it possible to change the background color of a whole row without touching every Cell.View Attribute of the Cells in this row? Like in Microsofts DataGridView it is myRow.DefaultCellStyle.SelectionBackColor