467,151 Members | 900 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,151 developers. It's quick & easy.

Update data from textbox to Datagrid

Hello, i am new here.

I have a datacombo,command button, a textbox and a gridview on my form.
When a choose a data from datacombo, it will appear on the textbox.
Mhy question is how can i add the data from the textbox that i choose to a gridview.
Oct 31 '06 #1
  • viewed: 3397
Share:
7 Replies
Expert 8TB
Hello, i am new here.

I have a datacombo,command button, a textbox and a gridview on my form.
When a choose a data from datacombo, it will appear on the textbox.
Mhy question is how can i add the data from the textbox that i choose to a gridview.
When you say "the data from the textbox that i choose" are you referring to choosing the textbox, or selecting part of the text within it? Either way should be pretty simple, but it depends on exactly what you're trying to do (please be specific) and what type of grid you are talking about. There are a number of them to choose from, including
  • Microsoft Data bound Grid Control
  • Microsoft DataGrid Control
  • Microsoft FlexGrid Control
  • Microsoft Grid Control
  • Microsoft Hierarchical FlexGrid Control
  • Probably any number of non-MS controls
Oct 31 '06 #2
"the data from the textbox that i choose" means, the data that appear at the textbox when i choose it from datacombo. Like selecting an item from datacombo and the item appears in textbox.

I am using Microsoft DataGrid Control.
Oct 31 '06 #3
Expert 8TB
"the data from the textbox that i choose" means, the data that appear at the textbox when i choose it from datacombo. Like selecting an item from datacombo and the item appears in textbox.

I am using Microsoft DataGrid Control.
So, you mean that when you choose an item in the combo, you want it to appear in both the textbox and the DataGrid?
Oct 31 '06 #4
So, you mean that when you choose an item in the combo, you want it to appear in both the textbox and the DataGrid?
I want the item to appear when i press the command button. By pressing the command button, the item will appear to DataGrid. Its like this in sequence:

1- Choose item from combobox
2- Item that i choose from combo box appear in textbox
3- Press the command button
4- Item appear in DataGrid.

I have no idea how to code the command button or whatsoever so that the item will appear in DataGrid. Please help me.
Oct 31 '06 #5
Expert 8TB
...
1- Choose item from combobox
2- Item that i choose from combo box appear in textbox
3- Press the command button
4- Item appear in DataGrid.
....
Thanks, I think we've got the problem more clearly defined now.

I can't really help any further with it though, as I don't know how to work with the datagrid. Had a quick look at the properties/methods, and couldn't make heads or tails of them. If it was a simple FlexGrid, that would be a different matter.

Hopefully, someone else will jump in at this point with more relevant info.
Oct 31 '06 #6
Anyone can help me with this problem?
Nov 1 '06 #7
Expert 8TB
Anyone can help me with this problem?
Does it need to be the datagrid? Is it connected to a data source?
Nov 1 '06 #8

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Russ Green | last post: by
25 posts views Thread by Neo Geshel | last post: by
4 posts views Thread by Jonathan Upright | last post: by
6 posts views Thread by Frank | last post: by
1 post views Thread by mursyidatun ismail | last post: by
2 posts views Thread by andrew.roberts@poundland.co.uk | last post: by
5 posts views Thread by Stephen Plotnick | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.