private void btn_UpdAsset_Click(object sender, EventArgs e) { if (dtg_Assets.SelectedRows.Count != 0) { UpdAsset upd = new UpdAsset(strConnection, dtg_Assets.SelectedRows[0].Cells[0].Value.ToString()); upd.ShowDialog(); SearchIt(); } }