Results 1 to 3 of 3

Thread: how to add values from textboxes to datagrid

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2002
    Posts
    145

    how to add values from textboxes to datagrid

    hi all,

    i have 3 textboxes, empno, lastname and firstname and a datagrid in a form. My question is how do you add data from 3 input textboxes to the datagrid at runtime. The datagrid has 3 columns, empno, lastname, firstname.

    thanks

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    You add it too the datasource the datagrid is connected to.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Oct 2002
    Posts
    145
    Hi,

    you're correct! I made the datagrid bounded to a datasource. Then when data are inputted to the 3 textboxes, i issued an insert statement and refreshed the grid.

    Thanks.

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