By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,594 Members | 2,016 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,594 IT Pros & Developers. It's quick & easy.

Update data from textbox to Datagrid

P: 4
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
Share this Question
Share on Google+
7 Replies


Expert 5K+
P: 8,434
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

P: 4
"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 5K+
P: 8,434
"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

P: 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 5K+
P: 8,434
...
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

P: 4
Anyone can help me with this problem?
Nov 1 '06 #7

Expert 5K+
P: 8,434
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.