Click here to Skip to main content
15,911,503 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Script for checking domain & Map Drive Pin
phil.o28-Oct-10 5:59
professionalphil.o28-Oct-10 5:59 
GeneralRe: Script for checking domain & Map Drive Pin
Dave Kreskowiak27-Oct-10 6:05
mveDave Kreskowiak27-Oct-10 6:05 
GeneralRe: Script for checking domain & Map Drive Pin
OrdinaryGal27-Oct-10 15:35
OrdinaryGal27-Oct-10 15:35 
GeneralRe: Script for checking domain & Map Drive Pin
Dave Kreskowiak27-Oct-10 17:22
mveDave Kreskowiak27-Oct-10 17:22 
GeneralRe: Script for checking domain & Map Drive Pin
OrdinaryGal28-Oct-10 4:17
OrdinaryGal28-Oct-10 4:17 
Questionvb .net 2008 express edition remove a row in datagridview Pin
Denis999926-Oct-10 3:01
Denis999926-Oct-10 3:01 
AnswerRe: vb .net 2008 express edition remove a row in datagridview Pin
_Erik_26-Oct-10 5:49
_Erik_26-Oct-10 5:49 
AnswerRe: vb .net 2008 express edition remove a row in datagridview Pin
DaveAuld26-Oct-10 5:49
professionalDaveAuld26-Oct-10 5:49 
If you delete a row, it screws up the enumerator because all the rows index positions change.

The easiest way to delete a bunch of rows in one operation, is to reverse the collection of row indexes and delete them from highest number to lowest number, the collection doesn't get screwed up that way.


If you don't yet know what rows you want to delete and are processing them based on some value within the table, them do exactly the same thing, start the search at the end of the collection and work backwards.

VB
For X as integer = ( datatable.rows.count -1 ) to 0 step -1
If datatable.rows(X).columns(y) = "value" then datable.rows.removeAt(X)
next

Dave
Find Me On: Web|Facebook|Twitter|LinkedIn

CPRepWatcher now available as Packaged Chrome Extension, visit my articles for link.

GeneralRe: vb .net 2008 express edition remove a row in datagridview Pin
Denis999928-Oct-10 0:06
Denis999928-Oct-10 0:06 
QuestionHow to get selected node in a XML with childnodes and childnodes' childnodes? Pin
sanyexian25-Oct-10 22:19
sanyexian25-Oct-10 22:19 
AnswerRe: How to get selected node in a XML with childnodes and childnodes' childnodes? Pin
Eaverae26-Oct-10 19:57
Eaverae26-Oct-10 19:57 
GeneralRe: How to get selected node in a XML with childnodes and childnodes' childnodes? Pin
sanyexian26-Oct-10 20:04
sanyexian26-Oct-10 20:04 
QuestionFiles in a VB.NET project to put under Version control Pin
cages25-Oct-10 9:15
cages25-Oct-10 9:15 
AnswerRe: Files in a VB.NET project to put under Version control Pin
dan!sh 25-Oct-10 10:56
professional dan!sh 25-Oct-10 10:56 
GeneralRe: Files in a VB.NET project to put under Version control Pin
cages26-Oct-10 10:20
cages26-Oct-10 10:20 
AnswerRe: Files in a VB.NET project to put under Version control Pin
Gregory Gadow25-Oct-10 11:08
Gregory Gadow25-Oct-10 11:08 
GeneralRe: Files in a VB.NET project to put under Version control Pin
AspDotNetDev25-Oct-10 11:21
protectorAspDotNetDev25-Oct-10 11:21 
GeneralRe: Files in a VB.NET project to put under Version control Pin
DaveAuld25-Oct-10 11:33
professionalDaveAuld25-Oct-10 11:33 
GeneralRe: Files in a VB.NET project to put under Version control Pin
Abrojus27-Oct-10 2:50
Abrojus27-Oct-10 2:50 
GeneralRe: Files in a VB.NET project to put under Version control Pin
Dell.Simmons27-Oct-10 6:07
Dell.Simmons27-Oct-10 6:07 
GeneralRe: Files in a VB.NET project to put under Version control Pin
Kenneth Kasajian27-Oct-10 10:26
Kenneth Kasajian27-Oct-10 10:26 
AnswerRe: Files in a VB.NET project to put under Version control Pin
Stonkie26-Oct-10 19:22
Stonkie26-Oct-10 19:22 
GeneralRe: Files in a VB.NET project to put under Version control Pin
AdamEcc26-Oct-10 23:39
AdamEcc26-Oct-10 23:39 
GeneralRe: Files in a VB.NET project to put under Version control Pin
p51dfltln27-Oct-10 4:42
p51dfltln27-Oct-10 4:42 
GeneralRe: Files in a VB.NET project to put under Version control Pin
Stonkie27-Oct-10 15:30
Stonkie27-Oct-10 15:30 

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.