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
435
Empty grid row
posted

I have a grid bound to a property in my ViewModel. I need to find out a setting or code to make empty grid rows to appear when no row exists for grid. We are using WPF Infragistic 9.2 version.

Any simple setting or we need to write a empty template? Any samples?

Thanks

  • 9836
    Suggested Answer
    posted

    In case you bind the grid to an empty collection exposed in your viewmodel, you can just add one dummy item and the grid will create an empty row. In addition, you can enable the add new row functionality of the grid by setting AddNewRow to true. Note that in order the row to appear you would need your collection to impelement IBindingList