Click here to Skip to main content
15,888,461 members
Home / Discussions / C#
   

C#

 
GeneralRe: Invisible Form Labels Pin
#realJSOP30-Jul-08 7:47
mve#realJSOP30-Jul-08 7:47 
GeneralRe: Invisible Form Labels Pin
Wendelius30-Jul-08 8:09
mentorWendelius30-Jul-08 8:09 
AnswerRe: Invisible Form Labels Pin
DaveyM6930-Jul-08 9:35
professionalDaveyM6930-Jul-08 9:35 
GeneralRe: Invisible Form Labels Pin
#realJSOP30-Jul-08 10:43
mve#realJSOP30-Jul-08 10:43 
GeneralRe: Invisible Form Labels Pin
DaveyM6930-Jul-08 11:45
professionalDaveyM6930-Jul-08 11:45 
GeneralRe: Invisible Form Labels Pin
#realJSOP30-Jul-08 12:05
mve#realJSOP30-Jul-08 12:05 
GeneralRe: Invisible Form Labels Pin
#realJSOP31-Jul-08 3:37
mve#realJSOP31-Jul-08 3:37 
QuestionHow to Update MDB file? Pin
Admin88730-Jul-08 5:20
Admin88730-Jul-08 5:20 
i did a application that creates a new and empty database file(MDB file).

i want to create a new row in the new database.

i did this:

string connectionString = "provider=Microsoft.JET.OLEDB.4.0; " + "data source =" + Dir;
           
string commandString = "Select id,cell from Events";

OleDbDataAdapter dataAdapter = new OleDbDataAdapter(commandString, connectionString);

DataSet ds = new DataSet();
dataAdapter.Fill(ds, "Events");
                                           
DataTable datatable = ds.Tables[0];
DataRow newRow = datatable.NewRow(); //adding a new Row

 newRow["id"] = "Gil";
 newRow["Event"] = "Gil2";
                       

datatable.Rows.Add(newRow);
dataAdapter.Update(ds, "Events");            
ds.AcceptChanges();        


it throws me a exception:

Update requires a valid InsertCommand when passed DataRow collection with new rows.


What is Wrong?..i am not understand

p.s
All of this is in try catch...
thank you!
AnswerRe: How to Update MDB file? Pin
Yusuf30-Jul-08 5:32
Yusuf30-Jul-08 5:32 
AnswerRe: How to Update MDB file? Pin
ElSpinos30-Jul-08 5:33
ElSpinos30-Jul-08 5:33 
QuestionSlides View Control Pin
breandan30-Jul-08 4:40
breandan30-Jul-08 4:40 
AnswerRe: Slides View Control Pin
Simon P Stevens30-Jul-08 5:37
Simon P Stevens30-Jul-08 5:37 
QuestionHow can i save event logs using C# ? Pin
Abhijit Jana30-Jul-08 3:55
professionalAbhijit Jana30-Jul-08 3:55 
AnswerRe: How can i save event logs using C# ? [modified] Pin
ElSpinos30-Jul-08 4:15
ElSpinos30-Jul-08 4:15 
GeneralRe: How can i save event logs using C# ? Pin
Tuwing.Sabado30-Jul-08 4:35
Tuwing.Sabado30-Jul-08 4:35 
GeneralRe: How can i save event logs using C# ? Pin
Abhijit Jana30-Jul-08 5:24
professionalAbhijit Jana30-Jul-08 5:24 
GeneralRe: How can i save event logs using C# ? Pin
ElSpinos30-Jul-08 5:45
ElSpinos30-Jul-08 5:45 
GeneralRe: How can i save event logs using C# ? Pin
Abhijit Jana30-Jul-08 6:56
professionalAbhijit Jana30-Jul-08 6:56 
Questionsetting printer options Pin
cmarmr30-Jul-08 2:48
cmarmr30-Jul-08 2:48 
AnswerRe: setting printer options Pin
DaveyM6930-Jul-08 3:14
professionalDaveyM6930-Jul-08 3:14 
QuestionAfter form load Auto close window Pin
Member 387988130-Jul-08 2:38
Member 387988130-Jul-08 2:38 
AnswerRe: After form load Auto close window Pin
DaveyM6930-Jul-08 2:55
professionalDaveyM6930-Jul-08 2:55 
AnswerRe: After form load Auto close window Pin
PIEBALDconsult30-Jul-08 3:47
mvePIEBALDconsult30-Jul-08 3:47 
QuestionHide My Window Form Pin
Member 387988130-Jul-08 1:54
Member 387988130-Jul-08 1:54 
AnswerRe: Hide My Window Form Pin
DaveyM6930-Jul-08 2:54
professionalDaveyM6930-Jul-08 2:54 

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.