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
2370
XamDataGrid -- Programmatic cell selection
posted

I would like to select the second column first row cell in the loaded event for the XamDataGrid.  

How can I do this?

Thanks,

Jon

  • 34810
    Verified Answer
    Offline posted

    Hello Jon,

    Thank you for your post.

    I would like you to take a look at the sample project I have attached, in which I demonstrate how to select the cell in the second column and first row of a XamDataGrid in the Loaded event of that control. You can utilize the XamDataGrid's Records collection to get the DataRecord. The DataRecord has a Cells collection, which you can use to obtain the cell. Then, set the IsSelected property of the cell to true.

    Please let me know if you have any other questions or concerns on this matter.

    Sincerely,
    Andrew
    Associate Developer
    Infragistics Inc.
    www.infragistics.com/support

    XDGSelectCellCase.zip