Click here to Skip to main content
16,006,845 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow to get the clients IP address using TcpClient in VB.Net Pin
Maher Abu Zer1-Mar-06 20:19
professionalMaher Abu Zer1-Mar-06 20:19 
AnswerRe: How to get the clients IP address using TcpClient in VB.Net Pin
Dave Kreskowiak2-Mar-06 5:35
mveDave Kreskowiak2-Mar-06 5:35 
AnswerRe: How to get the clients IP address using TcpClient in VB.Net Pin
Maher Abu Zer2-Mar-06 6:34
professionalMaher Abu Zer2-Mar-06 6:34 
GeneralRe: How to get the clients IP address using TcpClient in VB.Net Pin
Dave Kreskowiak2-Mar-06 7:37
mveDave Kreskowiak2-Mar-06 7:37 
QuestionTreeeview problem in vb.net Pin
pankajgarg121-Mar-06 20:09
pankajgarg121-Mar-06 20:09 
AnswerRe: Treeeview problem in vb.net Pin
Dave Kreskowiak2-Mar-06 5:08
mveDave Kreskowiak2-Mar-06 5:08 
Questioncreating multiple webcharts based upon query ID Pin
uglyeyes1-Mar-06 19:25
uglyeyes1-Mar-06 19:25 
AnswerRe: creating multiple webcharts based upon query ID Pin
Dave Kreskowiak2-Mar-06 4:50
mveDave Kreskowiak2-Mar-06 4:50 
Performance will suffer each time you have to go back to the database to get the records you need. Your best shot is to use a DataView on your DataTable so it returns all the records with at ID. It's a different View of the table. DataViews can be reconfigured quickly so...

What you'd probably do is retrieve a small table with all the UNIQUE (hint, hint) ID's you're going to use, then retrieve all the records that contain all the ID's you want in a seperate table.

Now, you'll iterate through the first table, with the ID's, and use each, one at a time, to build a DataView on the second table that will return only the records with that ID. You can then use the data in that DataView to bind to your control.
Dim dv As New DataView(dataTable)
With dv
    .AllowDelete = False
    .AllowEdit = False
    .AllowNew = False
    .RowFilter = String.Format("ID='{0}'", idToFind)
    .Sort = "CompanyName DESC"
End With
' Bind you control to this DataView



RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome


-- modified at 11:01 Thursday 2nd March, 2006
Questioncode for thinning or skeletonization in vb Pin
swap_1231-Mar-06 19:18
swap_1231-Mar-06 19:18 
AnswerRe: code for thinning or skeletonization in vb Pin
Dave Kreskowiak2-Mar-06 4:20
mveDave Kreskowiak2-Mar-06 4:20 
QuestionVB Image Comparison Pin
Russ72841-Mar-06 16:36
Russ72841-Mar-06 16:36 
AnswerRe: VB Image Comparison Pin
progload1-Mar-06 19:46
progload1-Mar-06 19:46 
GeneralRe: VB Image Comparison Pin
Russ72842-Mar-06 14:51
Russ72842-Mar-06 14:51 
GeneralRe: VB Image Comparison Pin
progload2-Mar-06 17:10
progload2-Mar-06 17:10 
GeneralRe: VB Image Comparison Pin
Russ72843-Mar-06 3:17
Russ72843-Mar-06 3:17 
QuestionComparing two large files Pin
Klazen1-Mar-06 15:44
Klazen1-Mar-06 15:44 
AnswerRe: Comparing two large files Pin
Dave Kreskowiak2-Mar-06 3:57
mveDave Kreskowiak2-Mar-06 3:57 
GeneralRe: Comparing two large files Pin
Klazen2-Mar-06 12:46
Klazen2-Mar-06 12:46 
QuestionFile Properties - mp3 Pin
united181-Mar-06 14:45
united181-Mar-06 14:45 
AnswerRe: File Properties - mp3 Pin
Klazen1-Mar-06 16:01
Klazen1-Mar-06 16:01 
GeneralRe: File Properties - mp3 Pin
united181-Mar-06 17:50
united181-Mar-06 17:50 
GeneralRe: File Properties - mp3 Pin
united184-Mar-06 7:44
united184-Mar-06 7:44 
GeneralRe: File Properties - mp3 Pin
Klazen4-Mar-06 10:38
Klazen4-Mar-06 10:38 
GeneralRe: File Properties - mp3 Pin
united184-Mar-06 20:35
united184-Mar-06 20:35 
QuestionChanges after Binding Data Pin
xoxoxoxoxoxox1-Mar-06 14:38
xoxoxoxoxoxox1-Mar-06 14:38 

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.