Click here to Skip to main content
15,906,626 members
Home / Discussions / C#
   

C#

 
GeneralRe: InterProcess Communication in WinForms Pin
Ariadne17-May-04 4:38
Ariadne17-May-04 4:38 
GeneralRe: InterProcess Communication in WinForms Pin
Dave Kreskowiak17-May-04 4:55
mveDave Kreskowiak17-May-04 4:55 
GeneralRe: InterProcess Communication in WinForms Pin
Ariadne17-May-04 5:18
Ariadne17-May-04 5:18 
Generalmesseging Pin
Devkalyan Das16-May-04 20:43
Devkalyan Das16-May-04 20:43 
GeneralRe: messeging Pin
Heath Stewart17-May-04 4:04
protectorHeath Stewart17-May-04 4:04 
GeneralRuntime Polymorphism Pin
sreejith ss nair16-May-04 20:43
sreejith ss nair16-May-04 20:43 
GeneralRe: Runtime Polymorphism Pin
Dave Kreskowiak17-May-04 0:52
mveDave Kreskowiak17-May-04 0:52 
GeneralRe: Runtime Polymorphism Pin
sreejith ss nair17-May-04 1:41
sreejith ss nair17-May-04 1:41 
GeneralRe: Runtime Polymorphism Pin
Dave Kreskowiak17-May-04 3:28
mveDave Kreskowiak17-May-04 3:28 
GeneralASP.NET and threads Pin
devvvy16-May-04 18:09
devvvy16-May-04 18:09 
GeneralRe: ASP.NET and threads Pin
TigerNinja_16-May-04 18:29
TigerNinja_16-May-04 18:29 
GeneralMore questions... Pin
devvvy16-May-04 22:02
devvvy16-May-04 22:02 
GeneralEmbed application Pin
The_Soul_Of_Rock16-May-04 17:58
The_Soul_Of_Rock16-May-04 17:58 
GeneralRe: Embed application Pin
TigerNinja_16-May-04 18:31
TigerNinja_16-May-04 18:31 
GeneralPost Data from DataList LinkButton Pin
Nickiler16-May-04 16:09
Nickiler16-May-04 16:09 
GeneralRe: Post Data from DataList LinkButton Pin
TigerNinja_16-May-04 18:18
TigerNinja_16-May-04 18:18 
GeneralRe: Post Data from DataList LinkButton Pin
Nickiler16-May-04 21:09
Nickiler16-May-04 21:09 
GeneralRe: Post Data from DataList LinkButton Pin
Heath Stewart17-May-04 4:09
protectorHeath Stewart17-May-04 4:09 
GeneralRe: Post Data from DataList LinkButton Pin
Nickiler17-May-04 6:20
Nickiler17-May-04 6:20 
GeneralDataTable searchs Pin
Moon Boy16-May-04 15:26
Moon Boy16-May-04 15:26 
GeneralRe: DataTable searchs Pin
TigerNinja_16-May-04 18:11
TigerNinja_16-May-04 18:11 
GeneralRe: DataTable searchs Pin
Heath Stewart17-May-04 4:10
protectorHeath Stewart17-May-04 4:10 
See the DataTable.Select command. It uses the same expressions as DataColumn.Expression. You could use this to get a DataRow[] array and then remove each of those array members from the DataTable.

Another way would be to sort the DataTable and iterate - not enumerate, which is what foreach does - through it keeping track of the last DataRow and comparing it with the current DataRow. If they contain the same data, remove the current DataRow (which is why you don't enumerate - changing a collection that you're enumerating throws an exception). Don't forget to decrement your index for the for loop since it will be incremented with the next iteration (you want to keep the index the same since you just removed a DataRow).

 

Microsoft MVP, Visual C#
My Articles
GeneralInformation about Excel 9.0 Obj.Library Pin
Rostrox16-May-04 11:33
Rostrox16-May-04 11:33 
GeneralRe: Information about Excel 9.0 Obj.Library Pin
Heath Stewart16-May-04 11:41
protectorHeath Stewart16-May-04 11:41 
GeneralEncrypt numbers Pin
Anonymous16-May-04 9:58
Anonymous16-May-04 9:58 

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.