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
1380
Ultragrid checked cell value
posted

Hello

There are two grids.How to add checked first grid columns value to second grid?

thanks in advance

Parents
No Data
Reply
  • 71886
    Verified Answer
    Offline posted

    Hello,

    I believe that you could achieve this through the following code, assuming you have two datatables called dt and dt2, for grid1 and grid2 respectively:

            private void ultraGrid1_CellChange(object sender, Infragistics.Win.UltraWinGrid.CellEventArgs e)

            {

                if (bool.Parse(this.ultraGrid1.ActiveCell.Text))

                    dt2.ImportRow(dt.Rows[e.Cell.Row.Index]);

            }

Children