I managed to “tab” and move to the next line on the grid by simulating a keystroke using SendKeys.Send("{TAB}"), Then if I manually click Save all the lines are saved correctly.
I still want the code to save automatically at the end. If I add oTrans.Update (); to the last line, it executes the save comand while it is still moving to the next line.
Is there any code that instead of SendKeys.Send("{TAB}"); that will make sure I’m on the next line before saving?
private void epiButtonC1_Click(object sender, System.EventArgs args)
{
// ** Place Event Handling Code Here **
EpiDataView edvV_OMS_Release_Jobs_1View1 = ((EpiDataView)(this.oTrans.EpiDataViews["V_OMS_Release_Jobs_1View1"]));
EpiUltraGrid eugV_OMS_Release_Jobs_1View1 = (EpiUltraGrid)csm.GetNativeControlReference("0297fc5c-4168-456b-a1c8-ef89b3805159");
foreach(DataRowView row in edvV_OMS_Release_Jobs_1View1.dataView)
{
row["JobAsmbl_Date02"] = DateTime.Now;
}
eugV_OMS_Release_Jobs_1View1.Focus();
SendKeys.Send("{TAB}");
//oTrans.Update ();
//MessageBox.Show ("Message Goes Here");
}