How can I show some field of dataset?

I have a datagrid C# winform and a dataset contain a table.
I want to set name of ColumnHeader and I want to choice some field (not all) of the table to display in datagrid. 
If I use datagrid.DataSource= dataset.Table[0]. All field of the table is display in datagrid. 
Could you help me
Thanks.


Answer this question

How can I show some field of dataset?

  • Lara R

    Hi bloke, 
    Thanks alot for support. 
    Good luck

  • Adrian McVoy

    You can either write a TableStyle class for full control or you can select the DataGrids TableStyle property in the property window and create the table style there.  For what you're asking the TableStyle property in the properties window will do the job.

    Most of your questions re DataGrids will be answered here http://64.78.52.104/FAQ/WinForms/FAQ_c44c.asp

  • How can I show some field of dataset?