title: How to get selected columns from a datatable
body: <p>I have a datatable with 10 columns, but User can select the columns to be displayed so I need to create a generic code to display only the selected columns. </p>
  
  <pre><code>Current code:
      string[] selectedColumns = new[] { };
      DataTable columns = new DataView(table).ToTable(false, selectedColumns); 
  </code></pre>