Click here to Skip to main content
15,568,971 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# Outside of .NET Pin
DavidNohejl17-Apr-07 22:28
DavidNohejl17-Apr-07 22:28 
QuestionInterview question - oops Pin
yaminilatha17-Apr-07 21:32
yaminilatha17-Apr-07 21:32 
AnswerRe: Interview question - oops Pin
Christian Graus17-Apr-07 21:36
mveChristian Graus17-Apr-07 21:36 
GeneralRe: Interview question - oops Pin
yaminilatha17-Apr-07 22:09
yaminilatha17-Apr-07 22:09 
AnswerRe: Interview question - oops Pin
sujithkumarsl17-Apr-07 23:58
sujithkumarsl17-Apr-07 23:58 
QuestionInvoke/Thread Error Pin
Rabbit1717-Apr-07 21:11
Rabbit1717-Apr-07 21:11 
AnswerRe: Invoke/Thread Error Pin
mdv11321-Apr-07 11:05
mdv11321-Apr-07 11:05 
Questionediting access table fields using C# Pin
rkherath17-Apr-07 20:55
rkherath17-Apr-07 20: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 21:17
professionalrah_sin17-Apr-07 21:17 
GeneralRe: editing access table fields using C# Pin
rkherath17-Apr-07 21:34
rkherath17-Apr-07 21:34 
QuestionDesposing Form problem Pin
EEmaan17-Apr-07 19:28
EEmaan17-Apr-07 19:28 
AnswerRe: Desposing Form problem Pin
Christian Graus17-Apr-07 20:40
mveChristian Graus17-Apr-07 20:40 
GeneralRe: Desposing Form problem Pin
EEmaan17-Apr-07 20:49
EEmaan17-Apr-07 20:49 
GeneralRe: Desposing Form problem Pin
Martin#17-Apr-07 21:07
Martin#17-Apr-07 21:07 
GeneralRe: Desposing Form problem Pin
EEmaan17-Apr-07 21:13
EEmaan17-Apr-07 21:13 
GeneralRe: Desposing Form problem Pin
Martin#17-Apr-07 21:22
Martin#17-Apr-07 21:22 
GeneralRe: Desposing Form problem Pin
Christian Graus17-Apr-07 21:38
mveChristian Graus17-Apr-07 21:38 
GeneralRe: Desposing Form problem Pin
Martin#17-Apr-07 21:43
Martin#17-Apr-07 21:43 
QuestionSplitting a path... Pin
deridder14917-Apr-07 18:28
deridder14917-Apr-07 18:28 
AnswerRe: Splitting a path... Pin
rah_sin17-Apr-07 18:53
professionalrah_sin17-Apr-07 18:53 
GeneralRe: Splitting a path... [modified] Pin
Mark Greenwood17-Apr-07 18:57
Mark Greenwood17-Apr-07 18:57 
GeneralRe: Splitting a path... Pin
Christian Graus17-Apr-07 20:30
mveChristian Graus17-Apr-07 20:30 
AnswerRe: Splitting a path... Pin
AB777117-Apr-07 19:20
AB777117-Apr-07 19:20 
QuestionAdd a Form to TabControl Pin
Dothanhnam17-Apr-07 17:24
Dothanhnam17-Apr-07 17:24 
AnswerRe: Add a Form to TabControl Pin
lchild38517-Apr-07 17:39
lchild38517-Apr-07 17: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.