473,326 Members | 2,102 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,326 software developers and data experts.

две формы, один dataset

Здравствуйте!!! Помогите реализовать
следующее.
Есть FormA, на ней dataGridView с полями "Имя",
"Фамилия", "Отчество" и кнопка Edit.
Выделяешь в нем строку, нажимаешь
кнопку Edit, открывается FormB, на которой
есть textBox1, textBox2, textBox3 и кнопка OK. Нужно
чтоб в этих t-box'ах отобразились текущие
данные, можно было их изменить, и нажав
OK изменения отобразились бы и в FormA.
Программирую в VS2005. Если не трудно,
скиньте проект мне на мыло, или дайте
ссылку на похожий проект.

Aug 30 '06 #1
4 2501
ec********@gmail.com wrote:
Здравствуйте!!! Помогите реализовать
следующее.
Есть FormA, на ней dataGridView с полями "Имя",
"Фамилия", "Отчество" и кнопка Edit.
Выделяешь в нем строку, нажимаешь
кнопку Edit, открывается FormB, на которой
есть textBox1, textBox2, textBox3 и кнопка OK. Нужно
чтоб в этих t-box'ах отобразились текущие
данные, можно было их изменить, и нажав
OK изменения отобразились бы и в FormA.
Программирую в VS2005. Если не трудно,
скиньте проект мне на мыло, или дайте
ссылку на похожий проект.
Домашнее задание, что ли?
Aug 30 '06 #2
I think that because of the wide possible use of the DataGridView you answer
how you did fill the items.

Moreover, did you do it using the datasource or just by separated items?

Before somebody understand this wrong, I am not able to read Russian it was
nicely done on AltaVista.
(My mother in law does know that but she once translated that our niece
would marry, however it was that she was getting a baby and was not
married).

Therefore please can you reply and translate this message in English with
the result that most of us can understand this.

Thanks in advance

Cor
<ec********@gmail.comschreef in bericht
news:11*********************@74g2000cwt.googlegrou ps.com...
Здравствуйте!!! Помогите реализовать
следующее.
Есть FormA, на ней dataGridView с полями "Имя",
"Фамилия", "Отчество" и кнопка Edit.
Выделяешь в нем строку, нажимаешь
кнопку Edit, открывается FormB, на которой
есть textBox1, textBox2, textBox3 и кнопка OK. Нужно
чтоб в этих t-box'ах отобразились текущие
данные, можно было их изменить, и нажав
OK изменения отобразились бы и в FormA.
Программирую в VS2005. Если не трудно,
скиньте проект мне на мыло, или дайте
ссылку на похожий проект.

Aug 30 '06 #3
Courtesy Babelfish:

"How do you do!!! Help to realize the following. There is FormA, on it
dataGridView with the fields "name", "surname", "patronymic" and button Edit.
You separate in it line, press button Edit, is opened FormB, on which is
textBox1, textBox2, textBox3 and button OK. Necessarily that current data
would reflect into these t -box'ax, it was possible to change them, and after
harvesting OK changes they would reflect, also, in FormA. I program in
VS2005. if not difficultly, skin'te project to me to the soap, or give
reference to the similar project."

I think what they are asking is that they have a DataGridView with an edit
button that opens a new form with the values, you change them, and how do you
get the changed values to propagate back to the original form and
DataGridView.

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Cor Ligthert [MVP]" wrote:
I think that because of the wide possible use of the DataGridView you answer
how you did fill the items.

Moreover, did you do it using the datasource or just by separated items?

Before somebody understand this wrong, I am not able to read Russian it was
nicely done on AltaVista.
(My mother in law does know that but she once translated that our niece
would marry, however it was that she was getting a baby and was not
married).

Therefore please can you reply and translate this message in English with
the result that most of us can understand this.

Thanks in advance

Cor
<ec********@gmail.comschreef in bericht
news:11*********************@74g2000cwt.googlegrou ps.com...
ц╨ц└ц▓ц│ц≈ц⌠ц■ц≈ц∙ц┼ц■ц┘!!! ц╟ц▐ц█ц▐ц┤ц┴ц■ц┘ ц▓ц┘ц│ц▄ц┴ц ц▐ц≈ц│ц■ц≤
ц⌠ц▄ц┘ц└ц∙ц─ц²ц┘ц┘.
ц╔ц⌠ц■ц≤ FormA, ц▌ц│ ц▌ц┘ц┼ dataGridView ц⌠ ц░ц▐ц▄ц▒ц█ц┴ "ц╘ц█ц▒",
"ц╕ц│ц█ц┴ц▄ц┴ц▒", "ц╞ц■ц·ц┘ц⌠ц■ц≈ц▐" ц┴ ц▀ц▌ц▐ц░ц▀ц│ Edit.
ц╥ц≥ц└ц┘ц▄ц▒ц┘ц⌡ц≤ ц≈ ц▌ц┘ц█ ц⌠ц■ц▓ц▐ц▀ц∙, ц▌ц│ц√ц┴ц█ц│ц┘ц⌡ц≤
ц▀ц▌ц▐ц░ц▀ц∙ Edit, ц▐ц■ц▀ц▓ц≥ц≈ц│ц┘ц■ц⌠ц▒ FormB, ц▌ц│ ц▀ц▐ц■ц▐ц▓ц▐ц┼
ц┘ц⌠ц■ц≤ textBox1, textBox2, textBox3 ц┴ ц▀ц▌ц▐ц░ц▀ц│ OK. ц╝ц∙ц√ц▌ц▐
ц·ц■ц▐ц┌ ц≈ ц°ц■ц┴ц┬ t-box'ц│ц┬ ц▐ц■ц▐ц┌ц▓ц│ц ц┴ц▄ц┴ц⌠ц≤ ц■ц┘ц▀ц∙ц²ц┴ц┘
ц└ц│ц▌ц▌ц≥ц┘, ц█ц▐ц√ц▌ц▐ ц┌ц≥ц▄ц▐ ц┴ц┬ ц┴ц ц█ц┘ц▌ц┴ц■ц≤, ц┴ ц▌ц│ц√ц│ц≈
OK ц┴ц ц█ц┘ц▌ц┘ц▌ц┴ц▒ ц▐ц■ц▐ц┌ц▓ц│ц ц┴ц▄ц┴ц⌠ц≤ ц┌ц≥ ц┴ ц≈ FormA.
ц╟ц▓ц▐ц┤ц▓ц│ц█ц█ц┴ц▓ц∙ц─ ц≈ VS2005. ц╔ц⌠ц▄ц┴ ц▌ц┘ ц■ц▓ц∙ц└ц▌ц▐,
ц⌠ц▀ц┴ц▌ц≤ц■ц┘ ц░ц▓ц▐ц┘ц▀ц■ ц█ц▌ц┘ ц▌ц│ ц█ц≥ц▄ц▐, ц┴ц▄ц┴ ц└ц│ц┼ц■ц┘
ц⌠ц⌠ц≥ц▄ц▀ц∙ ц▌ц│ ц░ц▐ц┬ц▐ц√ц┴ц┼ ц░ц▓ц▐ц┘ц▀ц■.


Aug 30 '06 #4

Sericinus hunter писал(а):
ec********@gmail.com wrote:
Здравствуйте!!! Помогите реализовать
следующее.
Есть FormA, на ней dataGridView с полями "Имя",
"Фамилия", "Отчество" и кнопка Edit.
Выделяешь в нем строку, нажимаешь
кнопку Edit, открывается FormB, на которой
есть textBox1, textBox2, textBox3 и кнопка OK. Нужно
чтоб в этих t-box'ах отобразились текущие
данные, можно было их изменить, и нажав
OK изменения отобразились бы и в FormA.
Программирую в VS2005. Если не трудно,
скиньте проект мне на мыло, или дайте
ссылку на похожий проект.

Домашнее задание, что ли?
Ну типа этого

Aug 31 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Bill C. | last post by:
Hi, I've got a simple console app that just reads an XML file into a DataSet then prints out a description of each table in the DataSet, including column names and row values for each column. ...
3
by: Jeronimo Bertran | last post by:
Hi, I have an xml file that encapsulates a dataset definition within a set of tags (<dataset>)... here is an example <?xml version="1.0" encoding="utf-16"?> <dataset> <MyTable>...
5
by: Mike | last post by:
I need to expand the DataSet class by inheriting from it and adding functions that work on the data in the tables. However, since I can't upcast how can I get my base DataSet object assigned an...
3
by: JJ | last post by:
Hi, I need to pass a dataset to another win form along with a SqldataAdapter. I don't want to recreate the SqlDataAdapter again either. So to pass to another Win form in my windows form app, do...
5
by: Jason | last post by:
I am having problems understanding how to access a datasource only once, fill a single dataset, and then reference that dataset multiple times through different user controls(ascx) found on the...
2
by: John Holmes | last post by:
I have a web interface where the user types in ID's one at a time. After an ID is typed in, a button is clicked and the button click event has code that does a query and returns a data reader and...
15
by: JIM.H. | last post by:
Hello, Can I send a dataset as a parameter into stored procedure and import data to a table in the stored procedure? Thanks, Jim.
16
by: Geoff Jones | last post by:
Hi Can anybody help me with the following, hopefully simple, question? I have a table which I've connected to a dataset. I wish to add a new column to the beginning of the table and to fill...
22
by: Arne | last post by:
How do I pass a dataset to a webservices? I need to submit a shoppingcart from a pocket PC to a webservice. What is the right datatype? II have tried dataset as a datatype, but I can't get it to...
4
by: Robert Bravery | last post by:
Hi All, I'm New to VS.net. Trying to figure out this new dataset thingy. Ok so I add a dataadapter with all the correct properties for a table. Then generate the dataset. Now open the dataset and...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you▓ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: ShФllНpТpО 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.