Hi all, I have been teaching myself DT, DS, and grids etc, but I am trying to return a result from a DAL and then using the data source to fill the grid. All has gone well except that in my grid I have to click on an annoying hairline cross to display my data, something to do with parent data? Please can someone advise me on the best practice that will avoid this dilemma? The code i am using is:
DAL
in the main form
thx T
Age is a consequence of experience
DAL
Code:
public OdbcDataAdapter CatDataAdap()
{
string sql = "SELECT category_id, category,
category_description, in_report FROM elitesalon.category";
daCat = new OdbcDataAdapter(sql,conn);
return daCat;
}
in the main form
Code:
OdbcDataAdapter da;
da= dc.CatDataAdap();
this.dsCat = new DataSet("Categrory");
da.Fill(dsCat);
dgcategory.DataSource = this.dsCat;
thx T
Age is a consequence of experience