Click here to Skip to main content
16,008,075 members
Home / Discussions / C#
   

C#

 
Questionhow can i add a bitmap to resource directory project by code? Pin
Susuko22-May-06 13:15
Susuko22-May-06 13:15 
AnswerRe: how can i add a bitmap to resource directory project by code? Pin
stancrm22-May-06 21:15
stancrm22-May-06 21:15 
QuestionTrancparency key in windows forms Pin
Kariem Soudy22-May-06 13:15
Kariem Soudy22-May-06 13:15 
AnswerRe: Trancparency key in windows forms Pin
Christian Graus22-May-06 14:35
protectorChristian Graus22-May-06 14:35 
GeneralRe: Trancparency key in windows forms Pin
Kariem Soudy23-May-06 22:11
Kariem Soudy23-May-06 22:11 
GeneralRe: Trancparency key in windows forms Pin
Kariem Soudy23-May-06 22:14
Kariem Soudy23-May-06 22:14 
QuestionGrid Controls Committing Changes [modified] Pin
tjschilling22-May-06 12:30
tjschilling22-May-06 12:30 
AnswerRe: Grid Controls Committing Changes [modified] Pin
Sean8922-May-06 13:07
Sean8922-May-06 13:07 
Ok. To update the database based on changes you have made in the datagrid you must be calling the DataAdapter.Update() method. This takes two arguments: Your datatable/dataset (this will be the datasource of your grid), and (if you hand it a dataset) the name of the table.

Ex.
dAdapter.Update(somedataset, "Table");
or
dAdapter.Update(sometable);

But you do need to specify an insert command in order for this to work. If a standard insert query is fine, you can use the command builder class. So, if you are using OleDb it would be like this:

OleDbCommandBuilder cmdBuild = new OleDbCommandBuilder(dAdapter);<br />
dAdapter.Update(somedataset, "Table");


Hope that helps! Poke tongue | ;-P



GeneralRe: Grid Controls Committing Changes [modified] Pin
tjschilling23-May-06 4:45
tjschilling23-May-06 4:45 
GeneralRe: Grid Controls Committing Changes [modified] Pin
Sean8923-May-06 9:15
Sean8923-May-06 9:15 
GeneralRe: Grid Controls Committing Changes [modified] Pin
tjschilling23-May-06 10:13
tjschilling23-May-06 10:13 
GeneralResolved Pin
tjschilling23-May-06 12:10
tjschilling23-May-06 12:10 
GeneralRe: Resolved Pin
Sean8924-May-06 10:11
Sean8924-May-06 10:11 
QuestionDataGridViewCheckBoxColumn values Pin
Elvia Gonzalez22-May-06 12:21
Elvia Gonzalez22-May-06 12:21 
Questiondatagridview Pin
kjosh22-May-06 10:13
kjosh22-May-06 10:13 
AnswerRe: datagridview Pin
led mike22-May-06 10:29
led mike22-May-06 10:29 
QuestionUsing expressions with resource only assembly Pin
koenjordens22-May-06 9:36
koenjordens22-May-06 9:36 
QuestionCatch WebException on async download Pin
Erikerikerikerikerassa22-May-06 8:46
Erikerikerikerikerassa22-May-06 8:46 
AnswerRe: Catch WebException on async download Pin
led mike22-May-06 9:27
led mike22-May-06 9:27 
GeneralRe: Catch WebException on async download Pin
Erikerikerikerikerassa22-May-06 10:00
Erikerikerikerikerassa22-May-06 10:00 
QuestionVS2005 Cross Thread Pin
donkaiser22-May-06 8:06
donkaiser22-May-06 8:06 
AnswerRe: VS2005 Cross Thread Pin
donkaiser22-May-06 8:07
donkaiser22-May-06 8:07 
GeneralRe: VS2005 Cross Thread [modified] Pin
led mike22-May-06 8:21
led mike22-May-06 8:21 
GeneralRe: VS2005 Cross Thread [modified] Pin
donkaiser22-May-06 8:28
donkaiser22-May-06 8:28 
GeneralRe: VS2005 Cross Thread [modified] Pin
led mike22-May-06 9:06
led mike22-May-06 9:06 

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.