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
1300
access to a row after a double click
posted

Hi ,

 

I want to send the value of a row in a function after a double click :

 

I tried something like this :

        private void Grid_multiO_DoubleClickRow(object sender, DoubleClickRowEventArgs e)
        {
            UltraGrid grid = (UltraGrid)sender;
            UIElement element =grid.DisplayLayout.UIElement.LastElementEntered;
            UltraGridCell cell = element.GetContext(typeof(UltraGridCell)) as UltraGridCell;
            UltraGridRow row = element.GetContext(typeof(UltraGridRow)) as UltraGridRow;
           
            object[] row_element = (object[])row.Cells.All;
            string tickername =  Convert.ToString(row_element[0]);
            if (cell != null)
            {
              //  MessageBox.Show("The user just double-clicked a cell.");
            }

        }

However the line Convert.ToString(row_element[0]); does not work.

 

Any ideas ?

Thanks