public frmManageDriverShiftList() { InitializeComponent(); objDriverShifts = new DriverShiftsBO(); this.SetProperties((INavigation)objDriverShifts); grdDriverShift.GroupDescriptors.Expression = "ShiftDate"; grdDriverShift.GroupDescriptors[0].Format = "{1:dddd}"; grdDriverShift.AutoExpandGroups = true; //GroupDescriptor descriptor1 = new GroupDescriptor(); //// descriptor1.GroupNames.Add("Country", ListSortDirection.Ascending); //descriptor1.GroupNames.Add("", ListSortDirection.Ascending); //descriptor1.Expression = "ShiftDate"; //descriptor1.Format = "{1:dddd}"; ////descriptor1.GroupNames.Add("ContactTitle", ListSortDirection.Descending); //this.grdDriverShift.GroupDescriptors.Add(descriptor1); FormatDriverShiftGrid(); this.grdDriverShift.AllowEditRow = false; this.Load += new EventHandler(frmShiftWiseDriverList_Load); this.grdDriverShift.ViewCellFormatting += new CellFormattingEventHandler(grdDriverShift_ViewCellFormatting); this.grdDriverShift.CellFormatting += new CellFormattingEventHandler(grdDriverShift_CellFormatting); this.grdDriverShift.CommandCellClick += new CommandCellClickEventHandler(grdDriverShift_CommandCellClick); this.grdDriverShift.KeyPress += new KeyPressEventHandler(grdDriverShift_KeyPress); this.grdDriverShift.MouseClick += new MouseEventHandler(grdDriverShift_MouseClick); this.grdDriverShift.GridViewElement.TableElement.VScrollBar.ValueChanged += new EventHandler(VScrollBar_ValueChanged); }
public frmAddDayWiseDriverShift() { InitializeComponent(); objDriverShifts = new DriverShiftsBO(); this.SetProperties((INavigation)objDriverShifts); this.Load += new EventHandler(frmAddDayWiseDriverShift_Load); this.KeyDown += new KeyEventHandler(frmAddDayWiseDriverShift_KeyDown); }
public frmShifts() { InitializeComponent(); objdriver = new DriverBO(); objMaster = new DriverShiftsBO(); FormateShiftGride(); ComboFunctions.FillDriverNoCombo(ddlDriver); ComboFunctions.FillDriverShiftsCombo(ddlShifts); grdShifts.CellDoubleClick += new GridViewCellEventHandler(grdShifts_CellDoubleClick); grdShifts.CommandCellClick += new CommandCellClickEventHandler(grid_CommandCellClick); }