Results 1 to 2 of 2

Thread: DataList

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Seattle
    Posts
    954

    DataList

    Why isn't this displaying anything?

    Code:
    			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.

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744
    You dont have to to use DefaultView, just the table.

    dlPrintable.DataSource = ds.Tables[0];

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width