|
-
Sep 28th, 2009, 04:45 PM
#1
Thread Starter
Hyperactive Member
-
Sep 28th, 2009, 06:32 PM
#2
Re: DGV Woes
sounds like something is declared but currently = nothing
I have not looked @ your code tho - check the RoomPricingDGV and txtRoomType also roomPricingDGV.curr....Value - highlight these bits and press shift F9 On them
Kris
-
Sep 29th, 2009, 12:57 AM
#3
Re: DGV Woes
Are you sure that there's a column in that grid named "RoomType"? It doesn't look like there is to me.
-
Sep 29th, 2009, 02:20 AM
#4
Thread Starter
Hyperactive Member
Re: DGV Woes
There is a is a column called RoomType but it is hidden.
Computerman
It was much easier in VB6, but I am now liking Vb.Net alot more. 
-
Sep 29th, 2009, 02:39 AM
#5
Re: DGV Woes
Working out why might be more difficult but working out which reference is Nothing is very simple, and that's what you need to do first. You can't solve the problem if you don;t know what problem you're solving. You can use the Immediate window, the Watch window, the Quick Watch window or simply select the reference and mouse over it to see it's value. Just start at the first reference on the line and keep going until you find one that's Nothing. You then work backwards to where you expected a value to be assigned to that reference.
-
Sep 29th, 2009, 08:12 AM
#6
Thread Starter
Hyperactive Member
Re: DGV Woes
I have checked the variable txtRoomType and there is a value associated to it. Can you give me a greater explination of the error as I am having trouble understanding what MSDN is trying to explain.
What is still confusing me is that the problem only occurs once a new datarow has been added to the grid. At all other times (ie editing, deleting and scrolling through the combobox), it behaves as it should.
Computerman
It was much easier in VB6, but I am now liking Vb.Net alot more. 
-
Sep 29th, 2009, 08:14 AM
#7
Thread Starter
Hyperactive Member
Re: DGV Woes
I have checked the variable txtRoomType and there is a value associated to it. Can you give me a greater explination of the error as I am having trouble understanding what MSDN is trying to explain.
What is still confusing me is that the problem only occurs once a new data that I have entered has been added to the grid and saved. At all other times (ie editing, deleting and scrolling through the combobox), it behaves as it should.
Computerman :confused
It was much easier in VB6, but I am now liking Vb.Net alot more. 
-
Sep 29th, 2009, 04:48 PM
#8
Thread Starter
Hyperactive Member
Re: DGV Woes
I finally solved it. I had gone about it the wrong way. I reset the VIRTUALMODE for the Datagrid to false, removed NEWROWNEEDED & ROWSADDED events and used the USERADDEDROW event instead. Now everything works the way it should.
Many thanks to everyone who tried to help.
Computerman
It was much easier in VB6, but I am now liking Vb.Net alot more. 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|