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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GGC - checkbox edit

Thread ID:





36018 Oct 18,2005 04:47 PM UTC Oct 18,2005 05:19 PM UTC WinForms 1
Tags: GridControl
Nancy Jan
Asked On October 18, 2005 04:47 PM UTC

Hi, I have two checkbox columns in a GGC grid. The columns are named "Delete" and "HighestVersion" separately. Initially "Delete" is false and "HighestVersion" is true. When user checks the "Delete" checkbox, and then save the record in the database. The server side does something based on the record, and then set both "Delete" and "HighestVersion" flags to false. After server side is done, I expect these two checkboxes to display "false" in the grid. However, they both are still "true". What can I do to fix this? --------- code in save method in GUI -------- this.TableControl.CurrentCell.EndEdit(); this.CurrencyManager.EndCurrentEdit(); // call server method to save data SaveData(this.geomDao, this.DataSet); this.Refresh(); -------- code in server method to save data ----- if (drow.RowState == DataRowState.Modified { ...... //reset any change made to record includs //setting "Delete" flag to false drow.RejectChanges; // set highest version to false drow[highestVerCol] = 0; drow.AcceptChanges(); ...... } Thanks, NJan

Administrator [Syncfusion]
Replied On October 18, 2005 05:19 PM UTC

Is drow from the actual DataTable that is the grid''s DataSource? Here is a little sample showing this working if drow is from the grid''s datasource. http://www.syncfusion.com/Support/user/uploads/GCC_CheckBoxes_c773024c.zip


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