Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In Screen1 : I'm having 2 textbox and a button. once i click into a button, data should comes into Screen2 which is having a datagrid. and display the value of 2 textboxed into a datagrid coloumns.

In Screen 3 I have combobox and a button , when i click on the button the combobox data should get displayed in datagrid in screen 2 along with 2 textboxes.


Can anyone tells me how to do it?

What I have tried:

Screen 1 VeiwModel
 private string _txtNumBox;
        public string TxtNumBox
        {
            get { return this._txtNumBox; }
            set
            {
                if (value != this._txtNumBox)
                {
                    this._txtNumBox = value;
                    this.NotifyPropertyChanged(TxtNumBox);
                    getResult();
                }
            }

        }

        private string _txtRCBox;
        public string TxtRCBox
        {
            get { return this._txtRCBox; }
            set
            {
                if (value != this._txtRCBox)
                {
                    this._txtRCBox = value;
                    this.NotifyPropertyChanged(TxtRCBox);
                    getResult();
                }
            }
        }    


Screen 2:

public class FinishedManualSelectionVM
   {
       FinishedManualPrintingVM fmpVM = new FinishedManualPrintingVM();
       public FinishedManualSelectionVM()
       {
           getGridDatafromScreen2();
       }

       public void getGridDatafromScreen2()
       {
           // var anum = fmpVM.TxtNumBox;
           var anum = fmpVM.TxtNumBox;
       }

   }
Posted
Updated 17-Jul-18 21:05pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900