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

Getting Current Value from CurrentCell on CurrentCellChanged

Thread ID:





12745 Apr 10,2004 04:23 PM UTC Apr 10,2004 05:18 PM UTC WinForms 1
Tags: GridControl
Asked On April 10, 2004 04:23 PM UTC

how can i get the current state of the checkbox when it is clicked? CurrentCell.Renderer.CurrentValue does not get updated on the second click. i.e. clicking on a checkbox first time and looking at the CurrentCell.Renderer.CurrentValue returns the correct value, now clicking on it the second time and the CurrentCell.Renderer.CurrentValue still retains the first change value Is a bug, design? and how can i make this work? this is getting very frusterating trying to figure out at what is going on behind the scenes, even with source code. Does syncfusion have logic flow chart of what goes on for common grid tasks (the order of events, updates etc for changing cells, updating datasource etc,)

Administrator [Syncfusion]
Replied On April 10, 2004 05:18 PM UTC

The checkbox is special in that it immediately saves the changed value to the grid itself with each change. So, in CurrentCellChanged, you can get the latest value of a checkbox directly from the grid, this.gridDataBoundGrid1[cc.RowIndex, cc.ColIndex].CellValue For other celltypes, you would get the value from the CurrentCell.Renderer.ControlText. If you run the celltype samples (Syncfusion\Essential Suite\Grid\Samples\CellTypes), they have the option of showing the currentcell events in the textbox at the bottom of the form.


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