DataGridView Information

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • narendra vajrala
    New Member
    • Jun 2007
    • 3

    #1

    DataGridView Information

    how to arrange the information from database into datagridview

    and also require all the properties of datagridview
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    Simply use a connection string, use a datareader to fill a dataset and then bind the dataset to the gridview. HTH.

    Comment

    • chinu
      New Member
      • Jun 2007
      • 36

      #3
      Originally posted by kenobewan
      Simply use a connection string, use a datareader to fill a dataset and then bind the dataset to the gridview. HTH.
      In order to arrange the information, you can do something like this

      gridView.Column s.Clear();
      gridView.AutoSi zeColumnsMode = DataGridViewAut oSizeColumnsMod e.AllCells;
      and create the view by
      gridView.AutoGe nerateColumns = false;
      gridView.Column s.Add("ActID", "Account ID");
      -----------------------------------------------------------------
      and once u have data in u r memory(if you are not databinding directly)
      gridView.Rows.A dd(ur data);
      Hope it helps..

      Comment

      Working...