|
-
Jan 3rd, 2008, 04:26 PM
#1
Thread Starter
Addicted Member
-
Jan 3rd, 2008, 04:32 PM
#2
Banned
Re: [2005] DataSource Update problem
nushtiu, imi pare rau
-
Jan 3rd, 2008, 07:09 PM
#3
Re: [2005] DataSource Update problem
It shouldn't be a surprise that you're editing the current row when you're specifically referring to the CurrentRow property. If you want to set the field values of the row you just added then do just that. You've got a reference to it right there:
Code:
row = DirectCast(Me.Lista_utilizatoriBindingSource.AddNew, DataRowView)
Last edited by jmcilhinney; Jan 3rd, 2008 at 07:20 PM.
-
Jan 3rd, 2008, 08:02 PM
#4
Thread Starter
Addicted Member
Re: [2005] DataSource Update problem
 Originally Posted by jmcilhinney
It shouldn't be a surprise that you're editing the current row when you're specifically referring to the CurrentRow property. If you want to set the field values of the row you just added then do just that. You've got a reference to it right there:
Code:
row = DirectCast(Me.Lista_utilizatoriBindingSource.AddNew, DataRowView)
I have a DGV and some TextBoxe's bounded to a binding source.
I've try it the .Insert() command but is not working too...
Then ?
Code:
if myproblem = "no_results" then
post on vbforums.com
else
google
end if
I'm still learning VB.NET
Sorry for my bad english
Thanks for your help
-
Jan 3rd, 2008, 09:17 PM
#5
Re: [2005] DataSource Update problem
If your TextBoxes are bound to the same BindingSource as the grid then you don't need to do anything. Creating a new row and entering data in the TextBoxes will automatically push the data to the BindingSource. The grid is bound to the same BindingSource so it already contains the new data.
-
Jan 4th, 2008, 08:30 AM
#6
Thread Starter
Addicted Member
Re: [2005] DataSource Update problem
 Originally Posted by jmcilhinney
If your TextBoxes are bound to the same BindingSource as the grid then you don't need to do anything. Creating a new row and entering data in the TextBoxes will automatically push the data to the BindingSource. The grid is bound to the same BindingSource so it already contains the new data.
Do you know what jmcilhinney ?
Works now...
I know that you are bored to see all the time this on the forum but... there are poples like me that want to know more sily things. It's a matter of time, someday i will be able to tell to other users what did you tell me now... (is a long way, but i will).
Thanks alot man for your big help, realy thanks!
I'm still learning VB.NET
Sorry for my bad english
Thanks for your help
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
|