Click here to Skip to main content
15,922,894 members
Home / Discussions / Windows Forms
   

Windows Forms

 
AnswerRe: group of buttons Pin
Luc Pattyn6-Jul-08 9:57
sitebuilderLuc Pattyn6-Jul-08 9:57 
GeneralRe: group of buttons Pin
Polar_Sheep6-Jul-08 10:04
Polar_Sheep6-Jul-08 10:04 
GeneralRe: group of buttons Pin
Luc Pattyn6-Jul-08 10:06
sitebuilderLuc Pattyn6-Jul-08 10:06 
NewsRe: group of buttons [modified] Pin
Polar_Sheep6-Jul-08 10:09
Polar_Sheep6-Jul-08 10:09 
AnswerRe: group of buttons Pin
Thomas Stockwell2-Jul-08 2:58
professionalThomas Stockwell2-Jul-08 2:58 
QuestionProblem in binding some controls to the data source Pin
LordCover1-Jul-08 9:33
LordCover1-Jul-08 9:33 
QuestionHow to send data automatically in between two pageloads of a web browser Pin
myidisnow1-Jul-08 3:30
myidisnow1-Jul-08 3:30 
QuestionHelp with data update Pin
anton-0930-Jun-08 22:14
anton-0930-Jun-08 22:14 
Hello,
could anyone solve my problem. I have application working with MSSQL Server: there is one table "goods" (id, name) and another one - "info" (id, idgood1, idgood2, info), where idgood1 and idggod2 - foreign keys. That is an example of what I want.

"Goods" Table:


id | name
---------
23 | foo1
24 | foo2
25 | foo3


"Info" Table:


id | idgood1 | idgood2 | info
-----------------------------
10 | _____23 | _____24 | inf1
11 | _____23 | _____25 | inf2
12 | _____24 | _____25 | inf3


I want to see in DataGridView such structure (first row - row header, first column - column header):


____ | foo1 | foo2 | foo3
--------------------------
foo1 | ____ | inf1 | inf2
foo2 | ____ | ____ | inf3
foo3 | ____ | ____ | ____



I select data from two tables ("goods", "info") in appropriate DataTable instances: GoodsDataTable and InfoDataTable. Then I CREATE (dynamically) one more DataTable instance - VisualDataTable, which is filled according to my needs. Then I put VisualDataTable into DataSet, DataSet into BindingSource, and, finally, BindingSource into DataGridView. It's working. Until I want to update something!
I tried to call SqlAdapter's Update method as for InfoDataTable as DataSet. But nothing happens.
In general, how should I update data in case when "visual" part of DataGridView and database structure are different..?
Another words, I take data from database, and put data into database with one table, and I edit data with another table.
QuestionBind listview Pin
venkat86_ece30-Jun-08 21:43
venkat86_ece30-Jun-08 21:43 
AnswerRe: Bind listview Pin
Giorgi Dalakishvili1-Jul-08 4:20
mentorGiorgi Dalakishvili1-Jul-08 4:20 
AnswerRe: Bind listview Pin
David Henry6-Jul-08 10:12
David Henry6-Jul-08 10:12 
QuestionHow to build a generic form with a progress bar (Like a generic progress dialog) Pin
Kit Fisto30-Jun-08 6:16
Kit Fisto30-Jun-08 6:16 
Questionproblem with buttons in Mdi form Pin
SamRST29-Jun-08 23:37
SamRST29-Jun-08 23:37 
AnswerCross post Pin
Thomas Stockwell30-Jun-08 5:08
professionalThomas Stockwell30-Jun-08 5:08 
QuestionTextbox event to know if text is selected? Pin
fredsparkle29-Jun-08 12:46
fredsparkle29-Jun-08 12:46 
AnswerRe: Textbox event to know if text is selected? Pin
Mycroft Holmes29-Jun-08 23:17
professionalMycroft Holmes29-Jun-08 23:17 
AnswerRe: Textbox event to know if text is selected? Pin
Richard Blythe30-Jun-08 17:42
Richard Blythe30-Jun-08 17:42 
Questiondatagrid cell text ignores tabs ("\t") Pin
Oren Wenger29-Jun-08 0:17
Oren Wenger29-Jun-08 0:17 
AnswerRe: datagrid cell text ignores tabs ("\t") Pin
Mycroft Holmes29-Jun-08 23:21
professionalMycroft Holmes29-Jun-08 23:21 
QuestionDataGridView CellPainting and wordwrap Pin
Nigel Mackay28-Jun-08 23:40
Nigel Mackay28-Jun-08 23:40 
QuestionPrevent user from leaving a row in datagridview Pin
Richard Blythe28-Jun-08 10:41
Richard Blythe28-Jun-08 10:41 
AnswerRe: Prevent user from leaving a row in datagridview Pin
Mycroft Holmes29-Jun-08 23:24
professionalMycroft Holmes29-Jun-08 23:24 
QuestionConvert form from c# to VB.net Pin
John Smith 00727-Jun-08 3:24
John Smith 00727-Jun-08 3:24 
AnswerRe: Convert form from c# to VB.net Pin
Thomas Stockwell27-Jun-08 7:49
professionalThomas Stockwell27-Jun-08 7:49 
AnswerRe: Convert form from c# to VB.net Pin
Paul Conrad28-Jun-08 7:51
professionalPaul Conrad28-Jun-08 7:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.