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
1401
How to Add New Row in UltraWinGrid having DataSource as IList.
posted

Hi,

Can you Please Guid me, how i can add new Row to the UltraWinGrid.

i am using CustomList as DataSource to grid.

Thanks.

Parents
No Data
Reply
  • 37774
    Suggested Answer
    posted

    The grid cannot support generically adding new rows when it is bound to an IList; this is because the IList does not provide any mechanism for actually creating a new entry, so the .NET BindingManager cannot perform this action.  If you want to accomplish this, you would have to insert the row into the data source yourself and notify the grid that it should reload the data (since IList doesn't provide notifications that additional rows have been added, I don't think):

    this.ultraGrid1.Rows.Refresh(RefreshRow.ReloadData);

    -Matt

Children
No Data