Programmatic Validation

How to control data injection in form1 to be different from table fom3
..
When entering a column of account text other than compact in the table "Pkacco" should open form3.
Then you should select the form3 record and rewrite the contents to form1 "Choose_button_Click"

Works fine when it triggers
when I use "TAB" but when I click the mouse does not validateb
 
How to do it in MdiParent.






Attachment: s_test2f_45f744dd(1)_ca719660.rar

4 Replies

GP Gregory Pe replied to Gregory Pelczar April 24, 2018 09:45 PM UTC

How to control data injection in form1 to be different from table fom3
..
When entering a column of account text other than compact in the table "Pkacco" should open form3.
Then you should select the form3 record and rewrite the contents to form1 "Choose_button_Click"

Works fine when it triggers
when I use "TAB" but when I click the mouse does not validateb
 
How to do it in MdiParent.






Attachment: s_test2f_45f744dd(1)_ca719660.rar

catalog s_test2f_45f744dd(1) - program code

no catalog  s_test2f - it's an attachment error - Please ignore

I added photos
Regards,
Gregory

Attachment: step_93e6b45.rar


SN Sindhu Nagarajan Syncfusion Team April 25, 2018 12:08 PM UTC

Hi Gregory, 

Thanks for your interest in Syncfusion products. 


We have analyzed your sample and we are able to reproduce your reported issue. In GridGroupingControl, CurrentCellValidating event will be triggered on mouse click when the current cell is modified/edited. According to your customization, when Cancel button is clicked, a value (%%) will be set to current cell, so IsModified property will be considered as False. Inorder to overcome the issue, IsModified property is set to True in the Form3.Form3_FormClosing event. Please refer to the below code, 
 
Code Example 
  private void Form3_FormClosing(object sender, FormClosingEventArgs e) 
  { 
   // code snippet 
   // 
   // 
      _form1.gridGroupingControl1.TableControl.CurrentCell.IsModified = true; 
   } 



Please let us know if you have any other queries. 

Regards, 
Sindhu  



GP Gregory Pe replied to Sindhu Nagarajan April 25, 2018 06:21 PM UTC

Hi Gregory, 

Thanks for your interest in Syncfusion products. 


We have analyzed your sample and we are able to reproduce your reported issue. In GridGroupingControl, CurrentCellValidating event will be triggered on mouse click when the current cell is modified/edited. According to your customization, when Cancel button is clicked, a value (%%) will be set to current cell, so IsModified property will be considered as False. Inorder to overcome the issue, IsModified property is set to True in the Form3.Form3_FormClosing event. Please refer to the below code, 
 
Code Example 
  private void Form3_FormClosing(object sender, FormClosingEventArgs e) 
  { 
   // code snippet 
   // 
   // 
      _form1.gridGroupingControl1.TableControl.CurrentCell.IsModified = true; 
   } 



Please let us know if you have any other queries. 

Regards, 
Sindhu  


Hi
Sindhu Thank you for your help
is great


SN Sindhu Nagarajan Syncfusion Team April 26, 2018 05:28 AM UTC

Hi Gregory, 

Thanks for the update. 
We are glad to hear that the provided solution resolved your scenario. Please let us know if you have any other queries. 

Regards, 
Sindhu  


Loader.
Up arrow icon