If I do the following:
private void scannedGrid_InitializeRecord(object sender, Infragistics.Windows.DataPresenter.Events.InitializeRecordEventArgs e)
{
e.Record.IsExpanded =
true;
}
Then scrollbars appear and there should be no reason for them with my DataSet. Clicking on child records also causes slight automatic vertical scrolling at this point. Is this a bug? If so, I need some kind of workaround that will reset the scrolling area.
Thanks.
This is a known issue and we are currently working on that. I believe you can go around that by forcing the XamDataGrid to scroll when this erroneous scrollbar can appear. You can use the BringRecordIntoView(...) method or use DataPresenterCommands for this.
I was able to work around the vertical scroll anomoly by putting my e.RecordIsExpanded=true statement in an asynchronous method that I dispatcher-invoked in the InitializeRecord event. So that issue in particular is a timing issue. I used DispatcherPriority.Loaded in case anyone is wondering.
In the meantime, I took a look at the Control demo that comes with the infragistics controls. On the SQL demo (for XamDataGrid), if I delete all but the top two records and expand 3 levels deep and then contract one level then the scrollbar appears. It doesn't cause any weird veritical scrolling to automatically happen but it's still there and very incorrect.
Any workaround for that as it is affecting me?