Click here to Skip to main content
15,895,462 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How to Edit Return Masked number in Datagridveiw Pin
Eddy Vluggen4-Sep-15 6:56
professionalEddy Vluggen4-Sep-15 6:56 
Questionhow do i hide the values in datagridview Pin
JackieRathinam3-Sep-15 19:49
JackieRathinam3-Sep-15 19:49 
AnswerRe: how do i hide the values in datagridview Pin
Eddy Vluggen4-Sep-15 5:17
professionalEddy Vluggen4-Sep-15 5:17 
QuestionMerging 3 identical datatables and summing a column in vb.net Pin
Vijay Kumar3-Sep-15 1:25
Vijay Kumar3-Sep-15 1:25 
QuestionCompare two table Pin
dha NAA3-Sep-15 0:46
dha NAA3-Sep-15 0:46 
AnswerRe: Compare two table Pin
Ralf Meier3-Sep-15 1:51
mveRalf Meier3-Sep-15 1:51 
GeneralRe: Compare two table Pin
dha NAA3-Sep-15 3:24
dha NAA3-Sep-15 3:24 
AnswerRe: Compare two table Pin
Richard Deeming3-Sep-15 2:54
mveRichard Deeming3-Sep-15 2:54 
Whenever you're removing items from a collection within a For loop, you should start and the end of the collection and work backwards. Otherwise, you end up skipping every element following a removed item.
VB.NET
For i As Integer = dt_grid1.Rows.Count - 1 To 0 Step -1
    ...
Next

You'll also need to specify the row you're looking at when you read the column value:
VB.NET
If dt_grid1.Rows(i)("BarCode").ToString() = dtserialleft.Rows(j)("SerialNo").ToString() Then
    found = True
    Exit For ' No need to continue looking once we've found a match.
End If




"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: Compare two table Pin
dha NAA3-Sep-15 3:24
dha NAA3-Sep-15 3:24 
GeneralDesign question about access to database. Pin
Member 116832511-Sep-15 22:34
Member 116832511-Sep-15 22:34 
GeneralRe: Design question about access to database. Pin
CHill602-Sep-15 6:02
mveCHill602-Sep-15 6:02 
GeneralRe: Design question about access to database. Pin
Member 116832513-Sep-15 1:38
Member 116832513-Sep-15 1:38 
GeneralRe: Design question about access to database. Pin
GuyThiebaut3-Sep-15 0:04
professionalGuyThiebaut3-Sep-15 0:04 
GeneralRe: Design question about access to database. Pin
Member 116832513-Sep-15 1:28
Member 116832513-Sep-15 1:28 
GeneralRe: Design question about access to database. Pin
GuyThiebaut3-Sep-15 1:40
professionalGuyThiebaut3-Sep-15 1:40 
GeneralRe: Design question about access to database. Pin
Member 116832513-Sep-15 1:47
Member 116832513-Sep-15 1:47 
GeneralRe: Design question about access to database. Pin
GuyThiebaut3-Sep-15 1:57
professionalGuyThiebaut3-Sep-15 1:57 
GeneralRe: Design question about access to database. Pin
Member 116832513-Sep-15 2:19
Member 116832513-Sep-15 2:19 
GeneralRe: Design question about access to database. Pin
GuyThiebaut3-Sep-15 2:25
professionalGuyThiebaut3-Sep-15 2:25 
Questioninsert one data table to another Pin
dha NAA1-Sep-15 19:10
dha NAA1-Sep-15 19:10 
AnswerRe: insert one data table to another Pin
Wendelius1-Sep-15 19:50
mentorWendelius1-Sep-15 19:50 
Questionmake report Pin
Joebpn131-Aug-15 18:11
Joebpn131-Aug-15 18:11 
AnswerRe: make report Pin
Richard MacCutchan31-Aug-15 20:57
mveRichard MacCutchan31-Aug-15 20:57 
AnswerRe: make report Pin
ZurdoDev2-Sep-15 5:25
professionalZurdoDev2-Sep-15 5:25 
QuestionSQL Linq, IQueryable, Join and multiple contains Pin
jkirkerx26-Aug-15 10:28
professionaljkirkerx26-Aug-15 10:28 

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.