Results 1 to 3 of 3

Thread: Dataset and richtextbox question...[RESOLVED]

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2004
    Posts
    69

    Resolved Dataset and richtextbox question...[RESOLVED]

    G'day,
    I have a customer table with Name, Address, Phone, etc as columns. I've brought the data into my dataset via the selection criteria. How can I display that information about the customer in a richtextbox like this...

    Name
    Address
    Phone
    Postal Code

    I'm just not sure how to display it in a richtext box. I'll keep searching on this site but haven't found anything yet.

    Thanks a bunch
    Kidd
    Last edited by TheKidd554; Apr 1st, 2005 at 08:15 AM.

  2. #2
    Hyperactive Member Lil Ms Squirrel's Avatar
    Join Date
    Nov 2004
    Location
    planet squirrel
    Posts
    494

    Re: Dataset and richtextbox question...

    Something like this:

    VB Code:
    1. RichTextBox1.Text = ds.Tables(0).Rows(0)("CustomerName")
    2.         RichTextBox1.Text &= Environment.NewLine
    3.         RichTextBox1.Text &= ds.Tables(0).Rows(0)("Address")
    Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind.
    Dr. Seuss

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Dec 2004
    Posts
    69

    Re: Dataset and richtextbox question...

    Thanks Lil Ms Squirrel....works great.

    TheKidd

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