private void GridViewPersoneller_Click(object sender, EventArgs e) { GridViewPersoneller.OptionsSelection.EnableAppearanceFocusedRow = true; if (GridViewPersoneller.GetFocusedDataRow() != null && !Focusta) { Focus_Personel(); } _Focusta = false; }
void Focus_Personel() { if (_Yukleme || GridViewPersoneller.GetFocusedDataRow() == null) { return; } ucPersonelDetay1.Yukle_Personel(Convert.ToInt32(GridViewPersoneller.GetFocusedRowCellValue("PersonelID"))); }
void Sec() { if (GridViewPersoneller.RowCount == 0 || GridViewPersoneller.GetFocusedDataRow() == null) { _PersonelID = 0; _TcKimlikNo = null; _Ad = null; _Soyad = null; _Unvan = null; _Cinsiyet = null; this.DialogResult = DialogResult.Abort; } else { _PersonelID = Convert.ToInt32(GridViewPersoneller.GetFocusedDataRow()["PersonelID"]); _Ad = GridViewPersoneller.GetFocusedDataRow()["Ad"].ToString(); _Soyad = GridViewPersoneller.GetFocusedDataRow()["Soyad"].ToString(); _Unvan = GridViewPersoneller.GetFocusedDataRow()["Unvan"].ToString(); _Cinsiyet = GridViewPersoneller.GetFocusedDataRow()["Cinsiyet"].ToString(); this.DialogResult = DialogResult.OK; } }