Vb.net Display Data In Textbox Or Label Through Dataset

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jain19801
    New Member
    • Aug 2007
    • 2

    Vb.net Display Data In Textbox Or Label Through Dataset

    I Have Created Connection Object, Dataadapter And Fill The Dataset But Afterwards I Am Unable To Display The Data In Textbox Or Label
  • dip_developer
    Recognized Expert Contributor
    • Aug 2006
    • 648

    #2
    Originally posted by jain19801
    I Have Created Connection Object, Dataadapter And Fill The Dataset But Afterwards I Am Unable To Display The Data In Textbox Or Label
    what did you do.....have you tried anything???...g ive code snippet please........

    Comment

    • navneetkaur
      New Member
      • Sep 2007
      • 45

      #3
      hi
      u just do 1 thing just bind dsto textbox like

      textbox2.text = ds.tables[0].rows[0][0].tostring();


      acc to me it vl work 'd if its not working plz post ur question more clearly......



      enjoy programming....
      Navneet

      Comment

      • hbxtlhx
        New Member
        • Sep 2007
        • 10

        #4
        like this:

        TextBox tb;
        tb.DataBindings .Add("Text", ds, "fieldname" );

        Comment

        • navneetkaur
          New Member
          • Sep 2007
          • 45

          #5
          Originally posted by hbxtlhx
          like this:

          TextBox tb;
          tb.DataBindings .Add("Text", ds, "fieldname" );

          i dnt think so coz firstly u have not created instance of text box
          like
          it should

          textbox tb =new textbox();
          'd then u cn write
          tb.Text = ds.Tables[0].Rows[row][column].ToString();


          okay

          Comment

          Working...