adding item to listbox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • joyce85
    New Member
    • Jan 2007
    • 13

    adding item to listbox

    hai
    i had problem with adding items to listbox...

    i succeed that with the help of datasource

    but i am not able to modify items in listbox..

    here are my codes


    cmd3=new OleDbCommand("S elect Address From Tbl_Address where SI_No not like ("+textBox1.Tex t+")",con);
    ad1=new OleDbDataAdapte r(cmd3);
    DataSet ds1=new DataSet();
    ad1.Fill(ds1,"T bl_Address");
    DataView dv1=ds1.Tables["Tbl_Addres s"].DefaultView;
    listBox1.DataSo urce = dv1;
    listBox1.Displa yMember = "Address";

    help me soon
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by joyce85
    hai
    i had problem with adding items to listbox...

    i succeed that with the help of datasource

    but i am not able to modify items in listbox..

    here are my codes


    cmd3=new OleDbCommand("S elect Address From Tbl_Address where SI_No not like ("+textBox1.Tex t+")",con);
    ad1=new OleDbDataAdapte r(cmd3);
    DataSet ds1=new DataSet();
    ad1.Fill(ds1,"T bl_Address");
    DataView dv1=ds1.Tables["Tbl_Addres s"].DefaultView;
    listBox1.DataSo urce = dv1;
    listBox1.Displa yMember = "Address";

    help me soon
    Post the problem in a more specific technical forum.

    Comment

    Working...