PDA

Click to See Complete Forum and Search --> : DataList


brianh
May 18th, 2004, 05:24 PM
Why isn't this displaying anything?


sSQL.Append("Select * from _tech_review");

CRAB.COMPSERV.SQLConn conn = new CRAB.COMPSERV.SQLConn(db,server);
ds = conn.SelectSqlData(sSQL.ToString(), "_tech_review", true);
dlPrintable.DataSource = ds.Tables[0].DefaultView;
dlPrintable.DataBind();



I debugged it and the DataSet is returning something, but when I run the page it display nothing, no error.

Serge
May 24th, 2004, 04:02 PM
You dont have to to use DefaultView, just the table.

dlPrintable.DataSource = ds.Tables[0];