void SubemdekiAraclar() // ŞUBEDEKİ TÜM ARAÇLAR { AracGridView.DataSource = null; DataTable dt = BLL_Arac.TekSubeninAraclari(Session.SubeID); AracGridView.DataSource = dt; AracGridView.Refresh(); AracGridView.ClearSelection(); }
private void SubeComboBox_SelectedIndexChanged(object sender, EventArgs e) //ŞUBEYE GÖRE ARAÇ GETİRME { if (SubeComboBox.SelectedValue is int) { AracGridView.DataSource = null; DataTable dt = BLL_Arac.TekSubeninAraclari(Convert.ToInt32(SubeComboBox.SelectedValue)); AracGridView.DataSource = dt; AracGridView.Refresh(); AracGridView.ClearSelection(); } }