Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
280
How to pass value of an unboundfield to another page's constructor
posted

Hi

I have a xamdatagrid with unboundfields. The last field is a xamtexteditor. How do i pass this value to the constructor of another page? I have other xamtexteditors in the parent page, which can be easily accessed using this.txtnameofxamtexteditor.
Kindly help me in this scenario.

Thanks

 

Parents
No Data
Reply
  • 69686
    posted

    Your scenario is little vague, but I am assuming that you want something like this;

    private void Button_Click(object sender, RoutedEventArgs e)

            {

                Window2 w2 = new Window2((xamDataGrid.Records[0] as DataRecord).Cells[0].Value);

                w2.Show();

            }

    Moreover, you can use the DataContext or the Tag properties to do the same.

Children