private void UserInfo_Load(object sender, EventArgs e) { //databaseName = dbMySql.GetDatabaseName();// UserFatherWindow = (account)this.Owner; DataTable table = UserFatherWindow.LoadUser(); dtUser = table; if (strOwnParam == "insert") { UserRow = dtUser.NewRow(); } else { UserRow = (UserFatherWindow.dataGridView1.CurrentRow.DataBoundItem as DataRowView).Row as DataRow; ShowAll(); } }