Riddhi Valecha

Riddhi Valecha

  • 427
  • 3.2k
  • 396.4k

ASP.NET - Difference Between Lists OF Columns

Jun 8 2021 7:59 PM

Hello Team,

I have a  multi-select listbox.

It has all the column values of a table.

I have a datatable with 107 columns.

Now, from the user-interface, user has to select the columns that the user wants to see in the gridview.

How do I - remove the columns from datatable which the user does not want.?

From listbox items, how do I subtract datatable columns?

Please guide.


Answers (4)