private void ViewGrid_Click(object sender, System.EventArgs e)
        {
            if (Convert.ToInt64(ViewGrid.CurrentRowIndex) < 0)
            {
                return;
            }
            lngSearchId = Convert.ToInt64(ViewGrid[ViewGrid.CurrentRowIndex, 0]);

            ViewGrid.Select(ViewGrid.CurrentRowIndex);
            ViewGrid.Select();
            ViewGrid.Focus();
        }
Beispiel #2
0
        private void ViewGrid_Click(object sender, System.EventArgs e)
        {
            //if (Convert.ToInt64(ViewGrid.CurrentRowIndex.ToString()) < 0)
            //{
            //    BtnAdd.Focus();
            //    return;
            //}
            //lngSearchId = Convert.ToInt64(ViewGrid[ViewGrid.CurrentRowIndex, 0].ToString());

            ViewGrid.Select(ViewGrid.CurrentRowIndex);
            ViewGrid.Select();
            ViewGrid.Focus();
        }