Click here to Skip to main content
15,905,683 members
Home / Discussions / C#
   

C#

 
GeneralRe: removing the last character of textbox Pin
Christian Graus5-Oct-09 20:05
protectorChristian Graus5-Oct-09 20:05 
GeneralRe: removing the last character of textbox Pin
Rajesh Anuhya5-Oct-09 20:11
professionalRajesh Anuhya5-Oct-09 20:11 
GeneralRe: removing the last character of textbox Pin
Christian Graus5-Oct-09 20:30
protectorChristian Graus5-Oct-09 20:30 
GeneralRe: removing the last character of textbox Pin
NarendraSinghJTV6-Oct-09 1:41
NarendraSinghJTV6-Oct-09 1:41 
GeneralRe: removing the last character of textbox Pin
NarendraSinghJTV6-Oct-09 1:26
NarendraSinghJTV6-Oct-09 1:26 
GeneralRe: removing the last character of textbox Pin
NarendraSinghJTV6-Oct-09 1:28
NarendraSinghJTV6-Oct-09 1:28 
GeneralRe: removing the last character of textbox Pin
NarendraSinghJTV6-Oct-09 1:45
NarendraSinghJTV6-Oct-09 1:45 
GeneralRe: removing the last character of textbox Pin
PIEBALDconsult6-Oct-09 4:58
mvePIEBALDconsult6-Oct-09 4:58 
GeneralRe: removing the last character of textbox Pin
NarendraSinghJTV6-Oct-09 18:43
NarendraSinghJTV6-Oct-09 18:43 
AnswerRe: removing the last character of textbox Pin
AhmedMasum5-Oct-09 22:37
AhmedMasum5-Oct-09 22:37 
GeneralRe: removing the last character of textbox Pin
Christian Graus6-Oct-09 0:02
protectorChristian Graus6-Oct-09 0:02 
GeneralRe: removing the last character of textbox Pin
NarendraSinghJTV6-Oct-09 1:31
NarendraSinghJTV6-Oct-09 1:31 
GeneralRe: removing the last character of textbox Pin
NarendraSinghJTV6-Oct-09 1:34
NarendraSinghJTV6-Oct-09 1:34 
GeneralRe: removing the last character of textbox Pin
AhmedMasum6-Oct-09 16:17
AhmedMasum6-Oct-09 16:17 
GeneralRe: removing the last character of textbox Pin
NarendraSinghJTV6-Oct-09 18:18
NarendraSinghJTV6-Oct-09 18:18 
GeneralRe: removing the last character of textbox Pin
NarendraSinghJTV8-Oct-09 23:59
NarendraSinghJTV8-Oct-09 23:59 
QuestionPointer in C# .NET (in Express2008) Pin
det55-Oct-09 18:08
det55-Oct-09 18:08 
AnswerRe: Pointer in C# .NET (in Express2008) Pin
Christian Graus5-Oct-09 18:24
protectorChristian Graus5-Oct-09 18:24 
AnswerRe: Pointer in C# .NET (in Express2008) Pin
stancrm5-Oct-09 18:36
stancrm5-Oct-09 18:36 
QuestionHow to read table from MS_WORD using C# Pin
Yognand5-Oct-09 18:04
Yognand5-Oct-09 18:04 
AnswerRe: How to read table from MS_WORD using C# Pin
Christian Graus5-Oct-09 18:25
protectorChristian Graus5-Oct-09 18:25 
Questionwhy do Update method of SqldataAdapter not work? Pin
Nguyen Hong Lam5-Oct-09 17:55
Nguyen Hong Lam5-Oct-09 17:55 
This is my coding, DeleteComand and InsertComand work, but UpdateComand not work, if change dap.AcceptChangesDuringFill is true, then UpdateComand work, but Delete and Insert not work, please help me to solve this problem as impossible as

DataSet dsLocal = new DataSet();
DataSet dsServer = scsiClass.getDS("SELECT * FROM [t_HR_Group]", "t_HR_Group");

SqlDataAdapter dap = new SqlDataAdapter("SELECT * FROM [t_HR_Group1]", con);
dap.MissingSchemaAction = MissingSchemaAction.AddWithKey;
dap.AcceptChangesDuringFill = false;

dap.UpdateCommand = cmd.GetUpdateCommand();
dap.DeleteCommand = cmd.GetDeleteCommand();
dap.InsertCommand = cmd.GetInsertCommand();

dap.Fill(dsLocal, "t_HR_Group");
SqlCommandBuilder cmd = new SqlCommandBuilder(dap);

dsServer.Merge(dsLocal, true, MissingSchemaAction.AddWithKey);
//dsServer.GetChanges();

int cn = dsServer.Tables[0].Rows.Count - 1;
for (int i = 0; i <= cn; i++)
{
DataRow dr = dsServer.Tables[0].Rows[i];
if (dr.RowState == DataRowState.Unchanged)
{
dr.SetAdded();
}
else
if (dr.RowState == DataRowState.Added)
{
dr.AcceptChanges();
dr.Delete();
}
}


int eff=dap.Update(dsServer.Tables[0]);
AnswerRe: why do Update method of SqldataAdapter not work? Pin
Christian Graus5-Oct-09 18:25
protectorChristian Graus5-Oct-09 18:25 
GeneralRe: why do Update method of SqldataAdapter not work? Pin
PIEBALDconsult6-Oct-09 5:00
mvePIEBALDconsult6-Oct-09 5:00 
QuestionMRU Button List in C# Pin
Alisaunder5-Oct-09 17:54
Alisaunder5-Oct-09 17: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.