We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

DataBoundGrid CRUD Example wanted!

Thread ID:

Created:

Updated:

Platform:

Replies:

43619 Apr 27,2006 08:22 AM Apr 27,2006 09:06 AM Windows Forms 1
loading
Tags: GridControl
Rasmus Fynbo
Asked On April 27, 2006 08:22 AM

Hi I''m new to DataBoundGrid and I am looking for an example that shows how to update the underlying DataSet in order to reflect the changes that the user applies to the Grid (I only work with a dataset with one table - so far). This counts for 1) addings records 2) deleting 3) editing existing records 4) sorting rows or column (so that they stay where they are after a refresh) The examples I find usually only show how to fill a Grid with a dataset and display data - not modifying data and changing the DataSet. Where Can I find such an example.. it should be pretty basic.. Hope someone can help me Rasmus

Administrator [Syncfusion]
Replied On April 27, 2006 09:06 AM

Hi Rasmus, The best way to do this would be calling the grid.BeginUpdate() and grid.Binder.SuspendBinding() before you modify the underlying DataSource and call grid.Binder.ResumeBinding() and grid.EndUpdate() after that. SuspendBinding and ResumeBinding are two methods that allow the temporary suspension and resumption of data binding. You would typically suspend data binding if you want to make several changes to the data source without immediately updating the grid after each change. The attached sample shows how to update the underlying DataSet in order to reflect the changes that the user applies to the Grid. Here is a sample. http://www.syncfusion.com/Support/user/uploads/DataBoundGrid_12123f5.zip For more details, See the KB Article http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=99 http://www.syncfusion.com/Support/article.aspx?id=10443 Please let me know if you need any further assistance. Thanks for choosing Syncfusion Products. Best Regards, Haneef

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;