Wrox Programmer Forums
|
BOOK: Beginning VB.NET Databases
This is the forum to discuss the Wrox book Beginning VB.NET Databases by Thearon Willis; ISBN: 9780764568008
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning VB.NET Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 20th, 2005, 04:36 PM
Registered User
 
Join Date: Aug 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Timesheet hour value problem

When a manager views timeSheet entries for an employee, then switches to the next week (selecting from cboEmployeeWeekEnding) - the value from the cell which had the focus on the first timesheet entry gets "left behind" - ie the new week's timesheet data is loaded into the grid, but the value in the cell which had the focus still shows the value from the previous week (and is a darker shade of grey - focus color?).

 
Old August 22nd, 2005, 04:29 AM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
Posts: 396
Thanks: 0
Thanked 8 Times in 8 Posts
Default

I'm not experiencing this problem at all and cannot reproduce it. When I click on the combo box, the data grid loses focus and the highlighted cell becomes the same color as the other cells and the values from the timesheet for the new week ending date are loaded just fine.

Can you provide any more details on the problem you are experiencing?

Thearon
 
Old August 22nd, 2005, 05:06 AM
Registered User
 
Join Date: Aug 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I don't know if this is a clue, but having loaded a user's timesheet I then switch to the next week's sheet, but put a breakpoint on the start of the sub LoadTimeSheet & execute the 1st 2 lines grdTimeSheet.DataSource = Nothing
grdTimeSheet.DataMember = String.Empty
then skip to the end Sub and expected to see nothing displayed on the form. However, the cell which had the focus on the 1st sheet is there all by itself.

It seems that in the normal flow, the new sheet gets displayed, but this cell is sitting on top of it.

It may be something to do with the readonly=true setting of objColumn2 thru 6. If I skip these settings, the spurious behaviour doesn't happen, and I see the sheets displayed correctly.



 
Old August 23rd, 2005, 04:44 AM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
Posts: 396
Thanks: 0
Thanked 8 Times in 8 Posts
Default

This does not appear to be a problem. If you run the code normally without a breakpoint and encounter a problem then let me know.

Thearon
 
Old August 23rd, 2005, 06:02 AM
Registered User
 
Join Date: Aug 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I still get the problem with the original cell's value being displayed when I view the second timesheet. (Clearly this has to be a different value in the 2 timesheets, otherwise it wouldn't be obvious).
The symptom doesn't occur if I remove the readonly attibute from the cell.
I've used the code as downloaded from the website, so no keying errors on my side.
Could this be .Net bug, which may not be in your version - I'm running 7.1.3088 of the IDE, under dotNet framework 1.1 = 1.1.4322 SP1

 
Old August 24th, 2005, 04:30 AM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
Posts: 396
Thanks: 0
Thanked 8 Times in 8 Posts
Default

I'm running the same versions as you and do not experience the problem. If this is a problem for you then you might want to contact Microsoft for further assistance.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Hour glass cursor qadeer05 Javascript 9 August 7th, 2009 10:36 PM
Hour by Hour Matrix Report Ed_Conde BOOK: Professional SQL Server 2005 Reporting Services ISBN: 0-7645-8497-9 0 August 12th, 2008 02:51 PM
TimeSheet emeka Pro VB Databases 0 March 31st, 2007 02:17 AM
TimeSheet: Hours changeback to zeroes red1307 BOOK: Beginning VB.NET Databases 1 April 26th, 2005 10:08 AM
Using Datepart to get half an hour precision venomm Access 2 March 16th, 2005 10:08 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.