Click here to Skip to main content
15,887,421 members
Home / Discussions / C#
   

C#

 
GeneralRe: ContextMenu problem Pin
Mazdak10-Sep-03 22:00
Mazdak10-Sep-03 22:00 
GeneralAdd typed DataTable from one DataSet to another DataSet Pin
STW9-Sep-03 21:36
STW9-Sep-03 21:36 
GeneralRe: Add typed DataTable from one DataSet to another DataSet Pin
A.Wegierski10-Sep-03 2:54
A.Wegierski10-Sep-03 2:54 
GeneralRelocating Generated Dlls Pin
jtmtv189-Sep-03 13:41
jtmtv189-Sep-03 13:41 
Generalcasting System.Drawing.Imaging.EncoderValue Pin
RHamilton9-Sep-03 12:54
RHamilton9-Sep-03 12:54 
GeneralRetraction: casting System.Drawing.Imaging.EncoderValue Pin
RHamilton10-Sep-03 2:23
RHamilton10-Sep-03 2:23 
Generalupdating dataset through datagrid Pin
zuhx9-Sep-03 10:14
zuhx9-Sep-03 10:14 
GeneralRe: updating dataset through datagrid Pin
STW9-Sep-03 21:23
STW9-Sep-03 21:23 
Binding a Control to a DataTable or DataSet adjusts only Data in the DataSet NOT in the SQL-Server Table. That means that your input in your Datagrid will only change Data in the DataSet. You have to Update the Tables with the DataAdapter.Update(DataTable) / SqlDataAdapter.Update(...) Method.

So your Button to Update: SqlDataAdapter.Update(DataTable) /DataSet

DataTable dt=new DataTable("Table1");
..
..

SqlDataAdapter ada=new SqlDataAdapter(...);
ada.Update(dt);


Be aware of not to call DataSet.AcceptChanges/DataTable.AcceptChanges() before DataAdapter.Update()! because otherwise no data will be updated; after AcceptChanges all Rows are marked as unchanged and so the DataAdapter don't "find" Rows to Update! In the help files everywhere you can find
"AcceptChanges()" which is very irritating.
GeneralRe: updating dataset through datagrid Pin
zuhx10-Sep-03 10:50
zuhx10-Sep-03 10:50 
GeneralRe: updating dataset through datagrid Pin
STW10-Sep-03 22:39
STW10-Sep-03 22:39 
GeneralRe: updating dataset through datagrid Pin
zuhx11-Sep-03 5:47
zuhx11-Sep-03 5:47 
GeneralRe: updating dataset through datagrid Pin
STW11-Sep-03 10:17
STW11-Sep-03 10:17 
GeneralRe: updating dataset through datagrid Pin
zuhx12-Sep-03 6:03
zuhx12-Sep-03 6:03 
GeneralRe: updating dataset through datagrid Pin
STW12-Sep-03 7:23
STW12-Sep-03 7:23 
GeneralRe: updating dataset through datagrid Pin
STW12-Sep-03 8:02
STW12-Sep-03 8:02 
QuestionHow to Scale down controls on a window Pin
sumeat9-Sep-03 10:04
sumeat9-Sep-03 10:04 
AnswerRe: How to Scale down controls on a window Pin
STW9-Sep-03 21:51
STW9-Sep-03 21:51 
GeneralLooking for a good book on C# Pin
Flack9-Sep-03 9:54
Flack9-Sep-03 9:54 
GeneralRe: Looking for a good book on C# Pin
gadgetfbi9-Sep-03 13:15
gadgetfbi9-Sep-03 13:15 
GeneralRe: Looking for a good book on C# Pin
David Stone9-Sep-03 13:44
sitebuilderDavid Stone9-Sep-03 13:44 
GeneralRe: Looking for a good book on C# Pin
Braulio Dez9-Sep-03 23:28
Braulio Dez9-Sep-03 23:28 
GeneralC# Suitable for my new app? please help! Pin
Hydra9-Sep-03 7:53
Hydra9-Sep-03 7:53 
GeneralRe: C# Suitable for my new app? please help! Pin
Mazdak9-Sep-03 9:10
Mazdak9-Sep-03 9:10 
GeneralRe: C# Suitable for my new app? please help! Pin
J. Dunlap9-Sep-03 9:49
J. Dunlap9-Sep-03 9:49 
GeneralRe: C# Suitable for my new app? please help! Pin
monrobot139-Sep-03 13:16
monrobot139-Sep-03 13:16 

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.