Click here to Skip to main content
15,897,187 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: Encrypt numbers Pin
Heath Stewart16-May-04 11:47
protectorHeath Stewart16-May-04 11:47 
GeneralThreads and context switches Pin
devvvy16-May-04 7:44
devvvy16-May-04 7:44 
GeneralRe: Threads and context switches Pin
Heath Stewart16-May-04 11:44
protectorHeath Stewart16-May-04 11:44 
GeneralRe: Threads and context switches Pin
devvvy16-May-04 18:07
devvvy16-May-04 18:07 
GeneralRe: Threads and context switches Pin
Heath Stewart17-May-04 3:07
protectorHeath Stewart17-May-04 3:07 
GeneralDetermine removable disk type Pin
Wackatronic16-May-04 7:22
Wackatronic16-May-04 7:22 
GeneralRe: Determine removable disk type Pin
Heath Stewart16-May-04 11:51
protectorHeath Stewart16-May-04 11:51 
GeneralRe: Determine removable disk type Pin
Wackatronic16-May-04 12:57
Wackatronic16-May-04 12:57 
GeneralVB.NET or C# Pin
Luis Ricardo16-May-04 6:48
Luis Ricardo16-May-04 6:48 
GeneralRe: VB.NET or C# Pin
Bee Master16-May-04 7:04
Bee Master16-May-04 7:04 
GeneralRe: VB.NET or C# Pin
Luis Ricardo16-May-04 8:10
Luis Ricardo16-May-04 8:10 
GeneralRe: VB.NET or C# Pin
Stefan Troschuetz16-May-04 7:19
Stefan Troschuetz16-May-04 7:19 
GeneralRe: VB.NET or C# Pin
Colin Angus Mackay16-May-04 8:47
Colin Angus Mackay16-May-04 8:47 
GeneralRe: VB.NET or C# Pin
Luis Ricardo16-May-04 9:24
Luis Ricardo16-May-04 9:24 

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.