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
259
How to add rows in UltraGrid?
posted

 Please anyone help me on how to do this..

I can't find any method in the UltraGrid that accomplished this.

Parents
No Data
Reply
  • 45049
    posted

    It's important to emphasize that WinGrid is entirely a databound control.  If you don't have a data source set to the grid, you can't add rows to it.  Attempting to call the band's AddNew() method will throw an exception if the grid isn't bound (or if the grid is bound to something that doesn't implement IBindingList).

    If you want to use WinGrid without using a DataSet or custom business object, bind it to a WinDataSource and add your rows there.

Children