hi how can i add data to a unbound datagridview in C#. i have columns with a combo box column and a check box column and a calender control column. how can i add data to these columns in a datagrid view in C#

please help me
thanx
appriciate a lot
thanxxx

String connString = "..."
SqlConnection conn = new SqlConnection(connString);

String strSQL = "<Query here>";
SqlDataAdapter da = New OleDbDataAdapter(strSQL, conn);
Dataset ds = New DataSet;

da.Fill(ds, "Municipalities");

TestGridView.DataSource = ds;

Hope i helped,
Alex

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.