Riddhi Valecha

Riddhi Valecha

  • 443
  • 3.3k
  • 411k

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)