Print Page | Close Window

Default focus row problem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=6077
Printed Date: 22 November 2024 at 3:19am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Default focus row problem
Posted By: fatbone77
Subject: Default focus row problem
Date Posted: 10 January 2007 at 10:50pm

I have a frequently updated table. when user navigating the table by sliding scollbar, the table jumps back to first row when an update on the table occurs.


is it possible for a table to not anatomically have a focus row unless user explicitly click on it.

btw, i'm using V10.4.

 



Replies:
Posted By: larryp
Date Posted: 11 January 2007 at 3:05pm
You code try something like the following:
 

int nTopRowIndex = GetReportCtrl().GetTopRowIndex();

// ***** Do your table update here *******

GetReportCtrl().SetTopRow ( nTopRowIndex );

Although, if the table update occurred before the top row being displayed you might slightly be off.  But you know how many rows would be added so you could offset accordingly.
 
-- Larry


Posted By: fatbone77
Date Posted: 11 January 2007 at 11:02pm

thank for your reply very much. That might solve my problem.

but this should be done on case-by-case base. why need a default focus row, when nobody click on the rows? just like normal list-control under windows.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net