private void btnDeleteHistory_Click(object sender, EventArgs e)
        {
            try
            {
                int RangeId = ddlDateRange.SelectedValue.ToInt();


                if (RangeId == 0)
                {
                    ENUtils.ShowMessage("Please select a DateRange History");
                    return;
                }

                using (TaxiDataContext db = new TaxiDataContext())
                {
                    Fleet_DriverCommissionCollectionHistory objHistory = db.GetTable <Fleet_DriverCommissionCollectionHistory>().FirstOrDefault(c =>
                                                                                                                                                (c.Id == RangeId));


                    if (objHistory != null)
                    {
                        db.Fleet_DriverCommissionCollectionHistories.DeleteOnSubmit(objHistory);
                        db.SubmitChanges();
                    }
                }


                ComboFunctions.FillDriverCommissionCollectionHistoryCombo(ddlDateRange);
                grdLister.Rows.Clear();
            }
            catch (Exception ex)
            {
                ENUtils.ShowMessage(ex.Message);
            }
        }
 private void FillCombo()
 {
     ComboFunctions.FillDriverCommissionCollectionHistoryCombo(ddlDateRange);
     //ComboFunctions.FillDriverNoCombo(ddlDriver);
     ComboFunctions.FillDriverNoCombo(ddlDriver, c => c.DriverTypeId == 2);
 }