Hello Guys
I am trying create a DataGrid in Windows forms application, but i am unable to fill the data into that.
I am using data sets and data adapters for that, but i am getting a empty datagrid.
I am quite new to c# so can some body please help me.(.in using Data reader , and Data sets to fill the values in Datagrid ) please.
Thanks
string Conn;
Conn = "Dsn=Filter;uid=DBA;pwd=sql"; OdbcConnection Connection = new OdbcConnection(Conn);
Connection.Open();
OdbcCommand Cmd = new OdbcCommand("select * from Employees",Connection);
OdbcDataAdapter Da = new OdbcDataAdapter(Cmd);
DataSet Ds = new DataSet("Employees");
Da.Fill(Ds);
GridView1.DataSource = Ds.Tables;