Click here to Skip to main content
15,891,136 members
Home / Discussions / C#
   

C#

 
GeneralRe: removing row from dataTable / DataGridView Issue Pin
Harvey Saayman30-Jun-08 22:43
Harvey Saayman30-Jun-08 22:43 
QuestionSorting Data using BindingSource.Sort Pin
Alessandra7730-Jun-08 4:46
Alessandra7730-Jun-08 4:46 
AnswerRe: Sorting Data using BindingSource.Sort Pin
PIEBALDconsult30-Jun-08 5:41
mvePIEBALDconsult30-Jun-08 5:41 
QuestionAuto update of program (Downloading from web) Pin
Casper Hansen30-Jun-08 4:35
Casper Hansen30-Jun-08 4:35 
AnswerRe: Auto update of program (Downloading from web) Pin
User 665830-Jun-08 4:59
User 665830-Jun-08 4:59 
GeneralRe: Auto update of program (Downloading from web) Pin
Casper Hansen30-Jun-08 5:43
Casper Hansen30-Jun-08 5:43 
AnswerRe: Auto update of program (Downloading from web) Pin
Kjetil Svendsen30-Jun-08 22:34
Kjetil Svendsen30-Jun-08 22:34 
QuestionHelp with data update Pin
anton-0930-Jun-08 3:56
anton-0930-Jun-08 3:56 
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.
In my application I need to present a DataGridView in such a way,

_______| goods1 | goods2 | goods3
goods1 | info11 | ______ | ______
goods2 | ______ | ______ | info23
goods3 | info31 | ______ | info33

I select data from two tables ("goods", "info") in appropriate DataTable instances: GoodsDataTable and InfoDataTable. Then I CREATE (dynamically) one more DataTable - VisualDataTable, which IS what i need. 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.
AnswerRe: Help with data update Pin
Nader Elshehabi30-Jun-08 7:41
Nader Elshehabi30-Jun-08 7:41 
QuestionRe: Help with data update Pin
anton-0930-Jun-08 17:38
anton-0930-Jun-08 17:38 
QuestionPrevent double-click to resize window Pin
Jørn-Harald P30-Jun-08 2:45
Jørn-Harald P30-Jun-08 2:45 
AnswerRe: Prevent double-click to resize window Pin
Simon P Stevens30-Jun-08 3:12
Simon P Stevens30-Jun-08 3:12 
AnswerRe: Prevent double-click to resize window Pin
DaveyM6930-Jun-08 3:23
professionalDaveyM6930-Jun-08 3:23 
GeneralRe: Prevent double-click to resize window Pin
Simon P Stevens30-Jun-08 3:26
Simon P Stevens30-Jun-08 3:26 
AnswerRe: Prevent double-click to resize window Pin
PIEBALDconsult30-Jun-08 5:06
mvePIEBALDconsult30-Jun-08 5:06 
Questionopen a PDF document with C# Pin
laziale30-Jun-08 2:40
laziale30-Jun-08 2:40 
AnswerRe: open a PDF document with C# Pin
Simon P Stevens30-Jun-08 3:00
Simon P Stevens30-Jun-08 3:00 
AnswerRe: open a PDF document with C# Pin
leppie30-Jun-08 3:13
leppie30-Jun-08 3:13 
GeneralRe: open a PDF document with C# Pin
laziale30-Jun-08 3:25
laziale30-Jun-08 3:25 
GeneralRe: open a PDF document with C# Pin
laziale30-Jun-08 3:39
laziale30-Jun-08 3:39 
AnswerRe: open a PDF document with C# Pin
Thomas Stockwell30-Jun-08 4:49
professionalThomas Stockwell30-Jun-08 4:49 
Questionstoring and retrieving values from a hashtable stored in a session Pin
Member 340288630-Jun-08 2:26
Member 340288630-Jun-08 2:26 
AnswerRe: storing and retrieving values from a hashtable stored in a session Pin
Harvey Saayman30-Jun-08 3:19
Harvey Saayman30-Jun-08 3:19 
GeneralRe: storing and retrieving values from a hashtable stored in a session Pin
Simon P Stevens30-Jun-08 3:23
Simon P Stevens30-Jun-08 3:23 
GeneralRe: storing and retrieving values from a hashtable stored in a session Pin
Harvey Saayman30-Jun-08 3:26
Harvey Saayman30-Jun-08 3:26 

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.