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
380
How to access and use Xamdatagrid cell values in another window
posted

Hi..

I m using xamdatagrid.Here i m displaying data using xmldataprovider.

Here i can update the record also.now i want to use the active record values in another window.

i am able to get the active record cell values also.

If i want to use this active record cell values in another window..i m not able to do it..

Please give reply for this.

thank u in advance..

  • 69686
    posted

    Hello,

    Can you please provide more information on how you use the active record cell values and where exactly seems to be the problem?

    You should be able to open a new Window like this:

     

    xamDataGrid1.ActiveRecord = xamDataGrid1.Records[0]; // set currect record just in case

    Window2 w = new Window2();

    w.Show(); // show window

    And then, in the Window2 I can edit the first cell value of this record like this:

     

                          ((Application.Current.MainWindow as Window1).xamDataGrid1.ActiveRecord as DataRecord).Cells[0].Value = textBox1.Text;

    Thanks,
    Alex.