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
615
CellValuePresenter on scroll the scrollbar
posted

When I user CellValuePresenter to set one of records's style by vb code(for example:font color=red),It's works ok,but when I scroll the scrollbar (records is large) ,the row i has setted CellValuePresenter will works correctly.

would you give me some code to solved it!

thanks!

Parents
  • 69686
    posted

    Hello,

    This is because of the XamDataGrid's virtualization. When records are scrolled out of and in view, they are recreated and therefore the properties that you have set locally are lost. You can bind the properties that you want to set using (IValueConverter) or turn off the XamDataGrid's Virtualization (RecordContainerGenerationMode=PreaLoad) however, this is recommended if you do not expect to have many records.

Reply Children