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
985
XamDataGrid is scrolling autmatically
posted

 

Hi there,

i´m using the xamdatagrid with 2 fieldlayouts. one parent and one child layout. 

when i edit one cell in the parent layout the value should be applied to all the rows of the childfieldlayout.

this works fine BUT: i just set the value of the childrecord when my cell IsEnabled and to check this i use this:

 

CellValuePresenter.FromCell(item.Cells[e.Cell.Field.Name]).IsEnabled

but if the cell of the childlayout is not in view (because the parent-record is not expanded) the CellValuePresenter is null.

to solve this i set the IsExpanded-Property of the e.Cell.Record to true. BUT:

 Now it´s gonna by tricky: when the record expands the xamdatagrid scrolls automatically to the first column on the left. 

How can this happen?!

 

Hope you can help me out here....

 

regards

cloud