Click here to Skip to main content
15,881,413 members
Home / Discussions / C#
   

C#

 
GeneralOwner drawn menus Pin
UB14-Jan-04 23:01
UB14-Jan-04 23:01 
GeneralRe: Owner drawn menus Pin
Heath Stewart15-Jan-04 4:48
protectorHeath Stewart15-Jan-04 4:48 
GeneralRe: Owner drawn menus Pin
UB16-Jan-04 5:39
UB16-Jan-04 5:39 
GeneralScrolled object positioning Pin
Jinwah14-Jan-04 22:08
Jinwah14-Jan-04 22:08 
GeneralRe: Scrolled object positioning Pin
Heath Stewart15-Jan-04 4:38
protectorHeath Stewart15-Jan-04 4:38 
GeneralPlease give me an idea. Pin
god4k14-Jan-04 21:31
god4k14-Jan-04 21:31 
GeneralRe: Please give me an idea. Pin
Jinwah14-Jan-04 23:47
Jinwah14-Jan-04 23:47 
GeneralRe: Please give me an idea. Pin
Heath Stewart15-Jan-04 4:29
protectorHeath Stewart15-Jan-04 4:29 
As Jinwah was getting at, see the System.Data.DataSet class documentation in the .NET Framework SDK, as well as System.Data.Common.DbDataAdapter - specifically, one of its derived classes depending on what database you're accessing (like System.Data.SqlClient.SqlDataAdapter for a SQL Server database).

You give the DbDataAdapter the appropriate SELECT, INSERT, UPDATE, and DELETE commands (it has properties for each), which you can either use the DataAdapter designer in VS.NET or a CommandBuilder to generate, or type them yourself but generating an example to get an idea might be a good idea.

Then, whenever you update, remove, or insert information in the DataSet, you call DbDataAdapter.Update(DataSet) which will use the change type information for each DataRow and will call the appropriate DbCommand on the DbDataAdapter. There are several examples of this on the CodeProject web site, as well as examples in the .NET Framework SDK.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralInserting and Updating BLOBS Pin
Guinness4Strength14-Jan-04 18:28
Guinness4Strength14-Jan-04 18:28 
GeneralRe: Inserting and Updating BLOBS Pin
Heath Stewart15-Jan-04 4:24
protectorHeath Stewart15-Jan-04 4:24 
GeneralRe: Inserting and Updating BLOBS Pin
Guinness4Strength15-Jan-04 4:44
Guinness4Strength15-Jan-04 4:44 
GeneralRe: Inserting and Updating BLOBS Pin
Heath Stewart15-Jan-04 6:54
protectorHeath Stewart15-Jan-04 6:54 
GeneralRe: Inserting and Updating BLOBS Pin
Guinness4Strength15-Jan-04 8:20
Guinness4Strength15-Jan-04 8:20 
QuestionBest way of tracking remoting clients? Pin
Alex Korchemniy14-Jan-04 18:21
Alex Korchemniy14-Jan-04 18:21 
AnswerRe: Best way of tracking remoting clients? Pin
occcy14-Jan-04 21:22
occcy14-Jan-04 21:22 
GeneralRe: Best way of tracking remoting clients? Pin
Heath Stewart15-Jan-04 3:57
protectorHeath Stewart15-Jan-04 3:57 
AnswerRe: Best way of tracking remoting clients? Pin
Heath Stewart15-Jan-04 4:03
protectorHeath Stewart15-Jan-04 4:03 
GeneralRe: Best way of tracking remoting clients? Pin
Alex Korchemniy15-Jan-04 4:37
Alex Korchemniy15-Jan-04 4:37 
GeneralRe: Best way of tracking remoting clients? Pin
Heath Stewart15-Jan-04 9:41
protectorHeath Stewart15-Jan-04 9:41 
GeneralCustom Attributes Pin
pnolan14-Jan-04 13:53
pnolan14-Jan-04 13:53 
GeneralRe: Custom Attributes Pin
Heath Stewart15-Jan-04 3:55
protectorHeath Stewart15-Jan-04 3:55 
GeneralI still didn't found what I was looking for - C# Service installation Pin
Pinho14-Jan-04 12:53
Pinho14-Jan-04 12:53 
GeneralRe: I still didn't found what I was looking for - C# Service installation Pin
Heath Stewart15-Jan-04 3:50
protectorHeath Stewart15-Jan-04 3:50 
GeneralNeed several listviews to all sort at same time...or a listview that can have subitems that each have their own icon Pin
FocusedWolf14-Jan-04 12:45
FocusedWolf14-Jan-04 12:45 
GeneralRe: Need several listviews to all sort at same time...or a listview that can have subitems that each have their own icon Pin
FocusedWolf14-Jan-04 12:50
FocusedWolf14-Jan-04 12:50 

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.