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
210
ActiveCell Setting Selection Programmatically
posted
I'm an idiot ... How can I do this in WPF?

//Add a cell to the selected cells collection

Cell SelectedCell = (Cell)this.MyGrid.Rows[0].Cells[1]; this.MyGrid.SelectionSettings.SelectedCells.Add(SelectedCell);

http://help.infragistics.com/Help/Doc/WPF/2012.1/CLR4.0/html/xamGrid_Setting_Selection_Programmatically.html
Parents
No Data
Reply
  • 16495
    Offline posted

    Hello yziganenko,

    Thank you for your post.

    I have been looking into your question and I created a sample application based on your scenario to show how you can implement the functionality that you want to achieve. In the sample I handled the loaded event of XamDataGrid and in the event handler I  set the ActiveCell property of XamDataGrid.

    Please let me know if you need any further assistance on this matter.

    ActiveCellSettingSelection.zip
Children