Need a starting point: Displaying Data on a Form

  • Thread starter Thread starter Matthias Steinbart
  • Start date Start date
M

Matthias Steinbart

Hi,

here is my problem: I'd like to display data in a grid-like control on a
form. The data is fetched from an SQL DB using the SqlDataReader. Problem
is, the user must have the chance to set his/her preferences as of what
columns (fields) he/she will see and the order of them as well. (Like in
Outlook, where you can specify all these things in your Inbox. Now I need a
starting point. Is there something wrapped up already or do I have do to all
this from scratch?

Thanks for your help,

Matthias
 
The datagrid has sorting capablilities for all columns built-in. You might
want to check that out before programming it in. And yes, you can set
columns using atagrid methods and properties. Set the column.width=0 and
that column won't be visible. You need to create datagrid
DataGridTableStyle and GridColumnStylesCollection objects to do that in
Windows forms. I think doing it with ASP.NET is easier.
 
Back
Top