Hi,
How do I set the ActiveCell property to a cell inside a groupcolumn which has 2 columns?
I was trying to skip the tabindex of one of the text columns which is a ReadOnly column. I was able to achieve it for a xamGrid which has no group columns with the following code in ActiveCellChanging event but could not when I have to set the active cell inside a group column. Please advice.
dataGrid1.ActiveCell = e.PreviousActiveCell == dataGrid1.Rows[e.NewActiveCell.Row.Index].Cells[2] ? dataGrid1.Rows[e.NewActiveCell.Row.Index].Cells[0] : dataGrid1.Rows[e.NewActiveCell.Row.Index].Cells[2];
I need to get a reference to a cell in a group column to set the background color of the individual cell, I can set the column style, but I can't figure out how to get a reference to the individual cell
That worked. Thanks Steve.
You should resolve the cell by the Column:
dataGrid1.Rows[e.NewActiveCell.Row.Index].Cells[dataGrid1.Columns.AllVisibleChildColumns["Name"]].IsActive = true;
-SteveZ