Results 1 to 2 of 2

Thread: DataSet.Table problem... could be missing something [solved]

  1. #1

    Thread Starter
    Lively Member ayan's Avatar
    Join Date
    Jan 2004
    Posts
    112

    DataSet.Table problem... could be missing something [solved]

    hello...

    what did i miss about this statements?
    Code:
    			DataSet ds=new DataSet();
    			ds.Tables.Add("table");
    
    			sqlSelectCommand1.CommandText="select * from categories";
    			sqlDataAdapter1.Fill(ds.Tables("table"));
    			comboBox1.DataSource=ds.Tables("table");
    			comboBox1.DisplayMember="CategoryName";
    it puts a blue line on the bold property...

    thanx very much...
    Last edited by ayan; Apr 5th, 2004 at 01:08 AM.

  2. #2

    Thread Starter
    Lively Member ayan's Avatar
    Join Date
    Jan 2004
    Posts
    112
    hello.

    just got careless... hehe... the prob is this...
    Code:
    Dataset.Table("");
    not supposed to be done that way cause table is an array list... instead
    Code:
    DataSet.Table[""];
    thanx...

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