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
225
Position the grid on a specific Column
posted

Hi,

I am using a XamDatagrid with parent and child data.

The child data has about 30 Columns, 1 is pinned.

How can I achieve that :

1) that the Grid positions (for example) at Column 20 after expanding?

2) Focus and StartEditMode in Child.record(0) and Column 20 after expanding?

How can I get the information which is the top left non-pinned Field ?

Thank you

Matti

 

Thank you for your Help

Matti

 

 

 

 

  • 138253
    Offline posted

    Hello Matti,

     

    I am just checking if you got this worked out or you still require any assistance or clarification on the matter.

  • 138253
    Offline posted

    Hello Matti,

     

    Thank you for your post. I have been looking into it and I suggest you handle the XamDataGrid’s RecordExpanded event and add the following code in it:

    DataRecord dr = ((e.Record as DataRecord).ChildRecords[0] as ExpandableFieldRecord).ChildRecords[0] as DataRecord;
    xamDataGrid1.BringCellIntoView(dr.Cells[19]);
    CellValuePresenter.FromCell(dr.Cells[19]).StartEditMode();
    

     

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

     

    Looking forward for your reply.