Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
25
Setting focus to a cell in a group column
posted

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];