i have an datatable with 12 columns.now i need to remove all the columns except at the position “0”
i can remove individually by specifying the columns name. but i dnt want to do that.as it is not best way to code.
is there any other i can do that
thanks
Go backwards through the columns and remove each one. You have to go backwards to avoid an index out of range exception.
VB.Net Lovers: