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