pdzine 0 Newbie Poster

I'm having trouble with a very simple issue of binding to the AccessDataSource, or using an AccessDataSource as the datasource of a DataView, DataTable or anything (anything other than a user control, that is. I can bind to a datagrid, dropdownlist, etc. I'm just trying to make it more OO). I must be goofed on something obvious, bcause the closest I get is this, which still returns zero row count:

AccessDataSource ds = new AccessDataSource("~/App_Data/my.mdb", cmd);

DataView dv = new DataView(ds.ToString());

even with that, dv.Rows.Count is always 0.

Any help would be much appreciated. THanks.

pdzine

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.