Sum and delete columns in a dataset datatable
C#
2
Posts
2
Posters
0
Views
1
Watching
-
I would be very apprciative if someone could help me . i would like to be able to loop through all the columns in a dataset datatable , get a sum of the value in the column . Then if this is zero, I would like to delete the column. Thanks in advance
-
I would be very apprciative if someone could help me . i would like to be able to loop through all the columns in a dataset datatable , get a sum of the value in the column . Then if this is zero, I would like to delete the column. Thanks in advance
you can use grid[row,col] count the sum if ur are using dataTable as datatable then if sum is zere delet column form dataTable,
sikandar