Deleting columns with rows values from data table

Posted by Royson on Stack Overflow See other posts from Stack Overflow or by Royson
Published on 2010-05-03T10:55:11Z Indexed on 2010/05/03 10:58 UTC
Read the original article Hit count: 410

Filed under:
|
|
|
|

I want to delete specific column from my datable before bounding it to a grid view. I tried with

finalTable.Columns.RemoveAt(0);
finalTable.Columns.RemoveAt(1);

but it does not delete rows values belonging to that column..

How can we delete column with row values??

© Stack Overflow or respective owner

Related posts about c#

Related posts about Windows