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

C#

 
GeneralRe: C# Outside of .NET Pin
DavidNohejl17-Apr-07 21:28
DavidNohejl17-Apr-07 21:28 
QuestionInterview question - oops Pin
yaminilatha17-Apr-07 20:32
yaminilatha17-Apr-07 20:32 
AnswerRe: Interview question - oops Pin
Christian Graus17-Apr-07 20:36
protectorChristian Graus17-Apr-07 20:36 
GeneralRe: Interview question - oops Pin
yaminilatha17-Apr-07 21:09
yaminilatha17-Apr-07 21:09 
AnswerRe: Interview question - oops Pin
sujithkumarsl17-Apr-07 22:58
sujithkumarsl17-Apr-07 22:58 
QuestionInvoke/Thread Error Pin
Rabbit1717-Apr-07 20:11
Rabbit1717-Apr-07 20:11 
AnswerRe: Invoke/Thread Error Pin
mdv11321-Apr-07 10:05
mdv11321-Apr-07 10:05 
Questionediting access table fields using C# Pin
rkherath17-Apr-07 19:55
rkherath17-Apr-07 19:55 
Hi all,

i have a darabase in access i wanna edit a column in a table. my coding has no errors. also the dataset gets updated with the change but the real table doesn't get updated .

this is my coding.

OleDbConnection OLEDBcon = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\\WmsFoodCityPerformance.mdb" +
";Jet OLEDB:Database Password=sanuja");
OLEDBcon.Open();

string sel = "SELECT * FROM CON_AKU";

OleDbDataAdapter OLEDBda = new OleDbDataAdapter();

try
{
OleDbCommand OLEDBselcom = new OleDbCommand(sel, OLEDBcon);

OLEDBda.SelectCommand = OLEDBselcom;


}
catch
{
}
finally
{
DataSet ds = new DataSet();
OLEDBda.Fill(ds);
DataTable dt = new DataTable();
dt = ds.Tables[0];

foreach (DataRow dr in dt.Rows)
{
dr.BeginEdit();
dr["BGT_JUN"] = 0;
dr.EndEdit();
dr.AcceptChanges();
dt.AcceptChanges();


}

OLEDBda.Update(ds);
MessageBox.Show("Done");
dataGridView1.DataSource = ds.Tables[0];

}
}

please help

Regards
Ruwandi

rkherath
AnswerRe: editing access table fields using C# Pin
rah_sin17-Apr-07 20:17
professionalrah_sin17-Apr-07 20:17 
GeneralRe: editing access table fields using C# Pin
rkherath17-Apr-07 20:34
rkherath17-Apr-07 20:34 
QuestionDesposing Form problem Pin
EEmaan17-Apr-07 18:28
EEmaan17-Apr-07 18:28 
AnswerRe: Desposing Form problem Pin
Christian Graus17-Apr-07 19:40
protectorChristian Graus17-Apr-07 19:40 
GeneralRe: Desposing Form problem Pin
EEmaan17-Apr-07 19:49
EEmaan17-Apr-07 19:49 
GeneralRe: Desposing Form problem Pin
Martin#17-Apr-07 20:07
Martin#17-Apr-07 20:07 
GeneralRe: Desposing Form problem Pin
EEmaan17-Apr-07 20:13
EEmaan17-Apr-07 20:13 
GeneralRe: Desposing Form problem Pin
Martin#17-Apr-07 20:22
Martin#17-Apr-07 20:22 
GeneralRe: Desposing Form problem Pin
Christian Graus17-Apr-07 20:38
protectorChristian Graus17-Apr-07 20:38 
GeneralRe: Desposing Form problem Pin
Martin#17-Apr-07 20:43
Martin#17-Apr-07 20:43 
QuestionSplitting a path... Pin
deridder14917-Apr-07 17:28
deridder14917-Apr-07 17:28 
AnswerRe: Splitting a path... Pin
rah_sin17-Apr-07 17:53
professionalrah_sin17-Apr-07 17:53 
GeneralRe: Splitting a path... [modified] Pin
Mark Greenwood17-Apr-07 17:57
Mark Greenwood17-Apr-07 17:57 
GeneralRe: Splitting a path... Pin
Christian Graus17-Apr-07 19:30
protectorChristian Graus17-Apr-07 19:30 
AnswerRe: Splitting a path... Pin
AB777117-Apr-07 18:20
AB777117-Apr-07 18:20 
QuestionAdd a Form to TabControl Pin
Dothanhnam17-Apr-07 16:24
Dothanhnam17-Apr-07 16:24 
AnswerRe: Add a Form to TabControl Pin
lchild38517-Apr-07 16:39
lchild38517-Apr-07 16:39 

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.