Click here to Skip to main content
15,915,745 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Cancel...Cancel...Cancel...Problem. Pin
NANCO3-Mar-07 0:52
NANCO3-Mar-07 0:52 
Questionlistview selected item text Pin
FeRtoll1-Mar-07 23:42
FeRtoll1-Mar-07 23:42 
AnswerRe: listview selected item text Pin
JUNEYT2-Mar-07 1:42
JUNEYT2-Mar-07 1:42 
Questionhow to create Pin
taherjaorawala1-Mar-07 23:30
taherjaorawala1-Mar-07 23:30 
AnswerRe: how to create Pin
Colin Angus Mackay1-Mar-07 23:52
Colin Angus Mackay1-Mar-07 23:52 
GeneralRe: how to create Pin
taherjaorawala2-Mar-07 19:31
taherjaorawala2-Mar-07 19:31 
AnswerRe: how to create Pin
theScorp2-Mar-07 20:09
theScorp2-Mar-07 20:09 
Questiondiff values with n without debug statement Pin
khanmubashir1-Mar-07 23:17
khanmubashir1-Mar-07 23:17 
AnswerRe: diff values with n without debug statement Pin
JUNEYT2-Mar-07 1:50
JUNEYT2-Mar-07 1:50 
GeneralRe: diff values with n without debug statement Pin
khanmubashir2-Mar-07 5:07
khanmubashir2-Mar-07 5:07 
QuestionCustom Bar chart - Guidance needed Pin
sameerkm1-Mar-07 22:55
sameerkm1-Mar-07 22:55 
QuestionEstablishing a connection through a firewall (Proxy Server) Pin
MatthysDT1-Mar-07 22:45
MatthysDT1-Mar-07 22:45 
AnswerRe: Establishing a connection through a firewall (Proxy Server) Pin
Dave Kreskowiak2-Mar-07 4:39
mveDave Kreskowiak2-Mar-07 4:39 
GeneralRe: Establishing a connection through a firewall (Proxy Server) Pin
MatthysDT4-Mar-07 20:45
MatthysDT4-Mar-07 20:45 
QuestionMSHFLEXGRID Pin
Priya_20071-Mar-07 20:17
Priya_20071-Mar-07 20:17 
AnswerRe: MSHFLEXGRID Pin
Dave Kreskowiak2-Mar-07 4:36
mveDave Kreskowiak2-Mar-07 4:36 
QuestionApplication path in VB.Net Pin
Priya_20071-Mar-07 20:08
Priya_20071-Mar-07 20:08 
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.

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.