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.
Syncfusion Feedback

How do I set focus off the grid

Thread ID:

Created:

Updated:

Platform:

Replies:

6571 Aug 18,2003 06:18 PM UTC Aug 18,2003 07:03 PM UTC Windows Forms 1
loading
Tags: GridControl
Steli Andrei
Asked On August 18, 2003 06:18 PM UTC

Hi, I do have a GridDataBoundGrid and I do display data in it. When I click on a button (Edit) I turn the EnableEdit ON and I move the the top-left cell and set the focus on the grid. The cell becomes active ( I guess I do thing correctly) If I want to go back in Lookup mode, I press the Lookup button on my form, clear the grid (clearing the data source) but sometimes a value still remain in the current cell or the current cell still stays active. How do I remove the focus off of the current cell ?

Administrator [Syncfusion]
Replied On August 18, 2003 07:03 PM UTC

By clearing the DataSource, do you mean soing something like: myDataTable.Rows.Clear(); to remove all rows from the underlying datatable that is the DataSource for the grid? If so, before doing that, also try calling: this.grid.CurrentCell.EndEdit(); this.grid.Binder.EndEdit(); You may have to condifitionally call these EndEdit by first checking grid.CurrentCell.IsEditing and grid.Binder.IsEditing.

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.

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

;