예제 #1
0
        private void btnFind_Click(object sender, System.EventArgs e)
        {
            int rowHandle = GetRowHandleByColumnValue(gridView1, "CustomerID", "DRACD");

            if (rowHandle != GridControl.InvalidRowHandle)
            {
                gridView1.FocusedColumn    = gridView1.Columns.ColumnByFieldName("CustomerID");
                gridView1.FocusedRowHandle = rowHandle;
                if (gridView1.IsRowVisible(rowHandle) == RowVisibleState.Hidden)
                {
                    gridView1.MakeRowVisible(rowHandle, false);
                }
                gridView1.ShowEditor();
            }
            else
            {
                MessageBox.Show("Not found!");
            }
        }