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.

Disable entry into a grid row

Thread ID:

Created:

Updated:

Platform:

Replies:

14038 May 17,2004 06:50 AM May 17,2004 07:35 AM Windows Forms 2
loading
Tags: GridControl
Patrick Noble
Asked On May 17, 2004 06:50 AM

I want to be able to disable entry into a grid row based on data in the bound row of the datasource. If the previous row was a lower index than the disabled row then I want to move the cursor to the next enabled row higher, and vice versa for lower. Is there an event that detects row changes and provides arguments for previous and next rows? I feel sure I have seen it somewhere but can''t find it now.

Administrator [Syncfusion]
Replied On May 17, 2004 07:07 AM

Try using CurrentCellMoving or CurrentCellMoved. In your handler, you can use grid.CurrentCell.MoveFromRowIndex and grid.CurrentCell.MoveToRowIndex to decide whether you are changing rows, and what the rows are.

Patrick Noble
Replied On May 17, 2004 07:35 AM

Clay Thanks yet again for lightning fast response! Pat >Try using CurrentCellMoving or CurrentCellMoved. In your handler, you can use grid.CurrentCell.MoveFromRowIndex and grid.CurrentCell.MoveToRowIndex to decide whether you are changing rows, and what the rows are.

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.

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.

;