If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Visual Basic > VB6 and datagrid

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-29-09, 04:41
jp26198926 jp26198926 is offline
Registered User
 
Join Date: May 2009
Location: Philippines
Posts: 12
VB6 and datagrid

hello Sir.. (i dont know if i am in the place of posting this question..hehehe)

btw. in my vb6 form i have textbox, command button and datagrid,
now i want to add the content of textbox to datagrid when i clicked the command button..

thnx in advance...
__________________
"More Heads Are Better Than One"
Reply With Quote
  #2 (permalink)  
Old 05-29-09, 08:13
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
Welcome to the forum!

I'm moving your post to the Visual Basic topic - you should recieve better help from there
__________________
George
Twitter | Blog
Reply With Quote
  #3 (permalink)  
Old 06-01-09, 16:58
loquin loquin is offline
Super Moderator
 
Join Date: Jun 2004
Location: Arizona, USA
Posts: 1,797
The datagrid is always bound to the underlying recordset.
Why not allow the user to type the text directly into the datagrid?

Otherwise, the issue is locating the grid cell to which you will be updating...

(you could update the underlying recordset, then refresh the grid)
__________________
Lou
使大吃一惊
"Lisa, in this house, we obey the laws of thermodynamics!" - Homer Simpson
"I have my standards. They may be low, but I have them!" - Bette Middler
"It's a book about a Spanish guy named Manual. You should read it." - Dilbert

Reply With Quote
  #4 (permalink)  
Old 06-01-09, 22:30
jp26198926 jp26198926 is offline
Registered User
 
Join Date: May 2009
Location: Philippines
Posts: 12
Quote:
Originally Posted by loquin
The datagrid is always bound to the underlying recordset.
Why not allow the user to type the text directly into the datagrid?

Otherwise, the issue is locating the grid cell to which you will be updating...

(you could update the underlying recordset, then refresh the grid)
Thanks for ur reply sir..

btw, my datagrid is not connected to any database and i dont want connect it...

i just want only display what i type in textbox..(is this impossible sir? if yes then i will switch to msflexgrid.)


thnx in advanced
__________________
"More Heads Are Better Than One"
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On