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.

Cant arrow-key scroll up to first row that is disabled

Thread ID:

Created:

Updated:

Platform:

Replies:

18186 Aug 25,2004 11:00 AM Aug 25,2004 01:28 PM Windows Forms 2
loading
Tags: GridControl
Dan
Asked On August 25, 2004 11:00 AM

I have a virtual grid that has various rows with Enabled = False. This works great, making arrow key navigation SKIP OVER those disabled cells. However, when I use the arrow keys (or page up/down) to scroll down a few pages, then come all the way up to the top of the grid, the first row never scrolls into view. Since it''s disabled, the activecell can''t be set to that top row, so the grid doesn''t scroll. Any way to get the grid to scroll up to the top row, while still keeping the row disabled? (I''ve tried making the top row ReadOnly instead of disabled, but then the text in that row is selectable...not editable, but selectable - looks bad) I''ve posted a simple example app that shows this behavior. Thanks! keyboardscrollgrid_9588.zip

Administrator [Syncfusion]
Replied On August 25, 2004 11:39 AM

You can try handling QueryNextCurrentCellPosition.
private void grid1_QueryNextCurrentCellPosition(object sender, GridQueryNextCurrentCellPositionEventArgs e)
{
	if(e.RowIndex == 1 && this.grid1.TopRowIndex != 1)
		this.grid1.TopRowIndex = 1;
}

Dan
Replied On August 25, 2004 01:28 PM

Thanks Clay - that works great!

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.

;