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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

repopulating from dataset

Thread ID:





5713 Jul 15,2003 09:39 AM UTC Jul 15,2003 09:47 AM UTC WinForms 1
Tags: GridControl
Asked On July 15, 2003 09:39 AM UTC

Greetings! When using a dataset as my datasource everything loads up nicely into the datagrid, but since everything written into the DataGrid gets auto saved into the dataset i cannot use my step back button to correct problems before updating to the server in case the user wanted to change things.. Trying to repopulate in a way, i RE-FILL the dataset with info from the SQL Server (original not updated yet database) and everything changed back..... BESIDES the ROWS that the user added.. how can i repopulate the datagrid and get rid of those added unwanted rows that the user changed his mind about.... ? Like i said the Server is not updated yet, the user didn't press the update button, but the dataset gets auto updated...

Replied On July 15, 2003 09:47 AM UTC

Ok i just found a nice solution... not really a professional one... but its working.. I've created a fake dataset containing name of an empty table of my current full dataset one.. The fake one comes up populating the grid with nothing.. Then the full REAL dataset gets refilled with previous data from the SQL server and filling the datagrid letting the user have the previous status of the grid =) Thanks anyway, this forum and your guides helping a lot, A LOT!!!!!!!!!!!!!


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon