Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > BOOK: Beginning VB.NET Databases
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 20th, 2005, 04:36 PM
Registered User
 
Join Date: Aug 2005
Location: , , .
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?).

Reply With Quote
  #2 (permalink)  
Old August 22nd, 2005, 04:29 AM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
Location: Fuquay Varina, NC, USA.
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
Reply With Quote
  #3 (permalink)  
Old August 22nd, 2005, 05:06 AM
Registered User
 
Join Date: Aug 2005
Location: , , .
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.



Reply With Quote
  #4 (permalink)  
Old August 23rd, 2005, 04:44 AM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
Location: Fuquay Varina, NC, USA.
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
Reply With Quote
  #5 (permalink)  
Old August 23rd, 2005, 06:02 AM
Registered User
 
Join Date: Aug 2005
Location: , , .
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

Reply With Quote
  #6 (permalink)  
Old August 24th, 2005, 04:30 AM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
Location: Fuquay Varina, NC, USA.
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.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 11:16 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.