Data set to display Individual Columns from Ms acess Using C#

Answered Data set to display Individual Columns from Ms acess Using C#

  • Monday, July 09, 2012 2:11 PM
     
      Has Code
                DataSet ds = new DataSet();
                DataTable dt = new DataTable();
                ds.Tables.Add(dt);
                OleDbDataAdapter dd = new OleDbDataAdapter();
                dd = new OleDbDataAdapter("Select * From Jet", dbConn);
                dd.Fill(dt);
                dataGridView1.DataSource = dt.DefaultView;
                dbConn.Close();

    I have this data set to display my whole table onto my Ms Acess database table

    Now i need your help in displaying  only two columns of my table in my grideview. e.g. I have  (File_sed), (Names), (surname) ......n more  and now i want to diplay only (File_seq), (Name)

All Replies