display different columns in table

  • Thread starter Thread starter Matthew Louden
  • Start date Start date
M

Matthew Louden

To display the table with all columns, we can do this:

Dim dt As DataTable = ds.Tables(0)
dgEmployeeInfo.DataSource = dt
dgEmployeeInfo.DataBind()


I want to create check boxes with all the columns, so that users can select
which column (data field) to display. Any ideas??
 
yes, you can do that. create gridcolumnstyles for all the columns under
tablestyle.

give checkboxes on the form.

when he turned on any checkboxes. change width of particular gridcolumnstyle
to zero. when he turned off checkbox give nonzero positive width to the
gridcolumnstyle of particular column.

Rajesh Patel
 
Back
Top