Click here to Skip to main content
15,887,485 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Application path in VB.Net Pin
Colin Angus Mackay1-Mar-07 22:38
Colin Angus Mackay1-Mar-07 22:38 
AnswerRe: Application path in VB.Net Pin
Dave Kreskowiak2-Mar-07 4:17
mveDave Kreskowiak2-Mar-07 4:17 
QuestionHow to create a frames in vb.net? Pin
jeyanvidu1-Mar-07 18:53
jeyanvidu1-Mar-07 18:53 
AnswerRe: How to create a frames in vb.net? Pin
JUNEYT2-Mar-07 1:52
JUNEYT2-Mar-07 1:52 
QuestionHow do I fill a color fo range of selcted cell? Pin
B.L.Praveen1-Mar-07 18:31
B.L.Praveen1-Mar-07 18:31 
AnswerRe: How do I fill a color fo range of selcted cell? Pin
JUNEYT4-Mar-07 4:59
JUNEYT4-Mar-07 4:59 
Questiontyped datset, refilling problem Pin
steve_rm1-Mar-07 14:52
steve_rm1-Mar-07 14:52 
AnswerRe: typed datset, refilling problem Pin
Johan Hakkesteegt2-Mar-07 0:06
Johan Hakkesteegt2-Mar-07 0:06 
Hi Steve,

First thing that comes to mind with your code (although it hasn't got anything to do with the problem) is that you really don't have to use me. everywhere, and MessageBox.Show doesn't need .Show.

As for the actual problem though:
steve_rm wrote:
'Load all the components into the grid
Private Sub LoadAllSoftware()
Try
Me.TA_Software_dsComponent_Equipment1.Fill(Me.DsAddComponetAndEquipment1.Software)
Me.dgvSoftware.DataSource = Me.DsAddComponetAndEquipment1.Software
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
End Sub

You could try:
<br />
dgvSoftware.DataSource = DsAddComponetAndEquipment1<br />
dgvSoftware.DataMember = "Software"<br />

or alternatively you could try:
<br />
dgvSoftware.SetDataBinding(DsAddComponetAndEquipment1, "Software")<br />


steve_rm wrote:
[2005]


I take it that you mean that you are using .NET 2005? Unfortunately my boss doesn't want to invest in the upgrade yet, so I am still looking at it from the .NET 2003 point of view. Therefore it is ofcourse possible that my code doesn't apply for your environment anymore, but otherwise, are you sure that .fill actually empties the dataset first before filling it again? For me that doesn't work, I still need to call DataSet1.clear() first.

Now if binding works when your form is loaded, than maybe you should think of doing the .fill thing only once (at the beginning), copy the whole dataset into a temporary dataset, and just copy the temporary ds back to your main ds when the user presses the reset button.
The active data binding should take care of the rest.

Hope this is of use to you,

Johan

My advice is free, and you may get what you paid for.

AnswerRe: typed datset, refilling problem Pin
steve_rm8-Mar-07 16:20
steve_rm8-Mar-07 16:20 
QuestionSave As Pin
Anybloodyid1-Mar-07 11:39
Anybloodyid1-Mar-07 11:39 
AnswerRe: Save As Pin
Dave Kreskowiak1-Mar-07 14:32
mveDave Kreskowiak1-Mar-07 14:32 
GeneralRe: Save As Pin
Anybloodyid1-Mar-07 21:22
Anybloodyid1-Mar-07 21:22 
GeneralRe: Save As Pin
Dave Kreskowiak2-Mar-07 4:34
mveDave Kreskowiak2-Mar-07 4:34 
GeneralRe: Save As Pin
Anybloodyid2-Mar-07 10:35
Anybloodyid2-Mar-07 10:35 
GeneralRe: Save As Pin
Dave Kreskowiak2-Mar-07 14:37
mveDave Kreskowiak2-Mar-07 14:37 
GeneralRe: Save As Pin
Anybloodyid2-Mar-07 21:44
Anybloodyid2-Mar-07 21:44 
GeneralRe: Save As Pin
Dave Kreskowiak3-Mar-07 5:58
mveDave Kreskowiak3-Mar-07 5:58 
GeneralRe: Save As Pin
Anybloodyid3-Mar-07 9:30
Anybloodyid3-Mar-07 9:30 
Questioninheriting text file Pin
manni_n1-Mar-07 10:29
manni_n1-Mar-07 10:29 
AnswerRe: inheriting text file Pin
Colin Angus Mackay1-Mar-07 11:28
Colin Angus Mackay1-Mar-07 11:28 
AnswerRe: inheriting text file Pin
Christian Graus1-Mar-07 12:51
protectorChristian Graus1-Mar-07 12:51 
GeneralRe: inheriting text file Pin
Colin Angus Mackay1-Mar-07 13:04
Colin Angus Mackay1-Mar-07 13:04 
GeneralRe: inheriting text file Pin
Christian Graus1-Mar-07 13:23
protectorChristian Graus1-Mar-07 13:23 
GeneralRe: inheriting text file Pin
manni_n1-Mar-07 20:04
manni_n1-Mar-07 20:04 
GeneralRe: inheriting text file Pin
Colin Angus Mackay1-Mar-07 21:18
Colin Angus Mackay1-Mar-07 21:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.