you can also assign DataGridView's DataSource property any data source like dataTable it will take care of creating required column and filling data.
Try out any of the solution given here in thread, and if any problem get back. If you will tell what so far you have done as LizR told, it will be helpful for us to understand your problem.
public partial class Data : System.Web.UI.Page
protected void Page_Load(object sender, EventArgs e)
con = new SqlConnection();
con.ConnectionString = "Data Source=.;Database=Train;User Id=sa;Password=chi";
sda = new SqlDataAdapter("select * from RegistrationForm", con);
ds = new DataSet();
GridView1.DataSource = ds;
I Developed application in C# with crystal reports and created setup file in third party (Advance) Installer.When i installed my application on client system application is working but ...