473,385 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Update data from textbox to Datagrid

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
7 3493
Killer42
8,435 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
Bremen
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
Killer42
8,435 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
Bremen
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
Killer42
8,435 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
Bremen
4
Anyone can help me with this problem?
Nov 1 '06 #7
Killer42
8,435 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

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

Similar topics

3
by: Russ Green | last post by:
I am currently learning asp.net (vb) with Web Matrix. I am building an intranet page that will have an editable datagrid on it. I have got the datagrid to populate OK but I cannot get the Update...
5
by: Hennie | last post by:
When trying to update a record in an editable datagrid I ran into a few problems. My update procedure is just not working. Can someone please have a look at my code and see what am I doing wrong....
25
by: Neo Geshel | last post by:
This works: <form> <asp:TextBox id="name" /> <%= name.ClientID %> </form> But this DOES NOT work: <form>
4
by: Jonathan Upright | last post by:
Greetings to anyone who can help: I'm using WebMatrix to make ASP.NET pages, and I chose the "Editable DataGrid" at the project selector screen. As you may know, it defaults to the Microsoft...
6
by: Frank | last post by:
Hopefully this is the correct group for this message. My previous post to (I assume) a non-.net group was not welcomed. I have a form with 7 text boxes that are all bound to fields of a...
1
by: mursyidatun ismail | last post by:
Dear all, database use: Ms Access. platform: .Net i'm trying to update a record/records in a table called t_doctors by clicking da edit link provided in the database. when i ran through da...
2
by: andrew.roberts | last post by:
This is my second post now on this subject has I seem to be getting no where and the problem is really starting to bug me now. I can get a datagrid into an editable state but then neither the...
5
by: Stephen Plotnick | last post by:
I'm very new to VB.NET 2003 Here is what I have accomplished: MainSelectForm - Selects an item In a public class I pass a DataViewRow to ItemInformation1 Form ItemInformation2 Form
0
by: Erik | last post by:
Why isn't my update method getting called? Pasted below is an aspx from a 1.1 application I'm working on. It has two textboxes and a button for inserting data into the database, and a datagrid...
13
by: shookim | last post by:
I don't care how one suggests I do it, but I've been searching for days on how to implement this concept. I'm trying to use some kind of grid control (doesn't have to be a grid control, whatever...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.