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

DataGrid Display Problems

Thread ID:




5926 Jul 24,2003 11:44 AM UTC WinForms 0
Tags: FAQ
Anup Marwadi
Asked On July 24, 2003 11:44 AM UTC

Hello, I am binding ADODB recordset to the DataGrid by using a method of OLEDBAdapter that fills the DataSet. Thus I achieve the conversion from ADODB RS to DataSet. In the EDIT MODE on the grid, I have 2 possible options: 1. on the SAVE, I take the changes from the existing dataset, modify the ADODB recordset and convert the ADODB back to the DS and redisplay that to the user by making the DS the grid data source. 2. on the REVERT option, since I do not want to make any changes, I just repopulate the grid with the old ADODB recordset by converting it to Dataset and again display that to the user using the DataGrid.Datasource property I notice that on the SAVE the grid displays the changes made to the values, however on REVERT, the changes are made to the DATASET, but the values are not displayed on the GRID. As In if I make a change of QUANTITY FROM 1 to 3, and then click REVERT, the dataset changes from 3 back to 1, but the GRID cell doesnt actually reflect that change. It still displays the value as 3. Is there a way I can refresh the grid to show the current value. Logically speaking this should work coz I always take the latest DataSet copy and repopulate the grid. When I do, DS.accept changes and Ds.Reject Changes, It works fine, but shouldnt it also work the other way. I am in dire straits due to this problem. any help would be great


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