Hello!
I programmatically activate cell, but new active cell is not autoselected.
1. Build and Run attached sample
2. Select first cell
3. Click button Move under grid
In handler of click I change active cell:
this.ultraGrid1.ActiveCell = this.ultraGrid1.Rows[1].Cells[1]
After click previous cell is still selected, but I want use another selection strategy when new active cell is autoselected.
Hello,
The UltraGrid provides a Selected Collection which can be used to manipulate the selection strategy, but you should keep in mind that the ActiveCell isn't the same as selected. Though this is premade for the runtime actions like clicking or for the UltraGrid1.PerformAction(...) method you need to look after it when you do it oherwise.
In your specific case this should solve your problem:
ultraGrid1.Selected.Cells.Clear();
ultraGrid1.ActiveCell =
this.ultraGrid1.Rows[1].Cells[1];
ultraGrid1.Selected.Cells.Add(ultraGrid1.ActiveCell);
Please let me know if this is what you needed.
Sincerely,
Petar Monov,
DS Engineer,
Infragistics Bulgaria
Thanks, Petar! You read my mind:-)