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
3160
data record presenter loaded event does not fire if grid.visiblity = collapsed.
posted

Also, the following code causes huge borders around the grid headers even though it sets no style properties:

Style

DRPStyle = new Style {TargetType = typeof(DataRecordPresenter

) };

DRPStyle.Setters.Add(

new EventSetter { Event = LoadedEvent, Handler = new RoutedEventHandler

(AccountGrid_DataRecordPresenter_Loaded) });

  • 138253
    Offline posted

    Hello Sam,

     

    Thank you for your post. I have been looking into it and I can say that this behavior is expected, since the DataRecordPresenters are created dynamically when they are needed for visualizing data and, when you set the Visibility of the XamDataGrid to Collapsed they are not needed.

     

    Hope this helps you.