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.

Sachin SinghRank #66 · 26.2K reputationPosted Jun 9, 2021, 6:06 AM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Jun 8, 2021, 11:40 PM EDT
Riddhi ValechaRank #794 · 2.9K reputationPosted Jun 9, 2021, 3:00 AM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Jun 9, 2021, 3:46 AM EDT
Hi,
Please refer this linkw which will help you,
https://stackoverflow.com/questions/14497367/how-i-can-search-rows-in-a-datatable-with-a-searchstring
You can pass selected columns list and select that's columns from. Data table