protected virtual void gbList_MouseDown(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { this.DoShowMenu(this.gbList.CalcHitInfo(new Point(e.X, e.Y))); } AdvBandedGridView view = (AdvBandedGridView)sender; Vssoft.Common.Common.Class.RowClickEventArgs args = new Vssoft.Common.Common.Class.RowClickEventArgs((view == null) ? -1 : view.FocusedRowHandle, (view.FocusedColumn == null) ? -1 : view.FocusedColumn.ColumnHandle, (view.FocusedColumn == null) ? "" : view.FocusedColumn.FieldName); this.m_RowClickEventArgs = args; this.SetMenu(args); this.RaiseRowClickEventHander(args); }
public object GetCellValue(Vssoft.Common.Common.Class.RowClickEventArgs e, GridView view) { GridColumn column = new GridColumn(); if (e.ColumnIndex != -1) { column = view.Columns[e.ColumnIndex]; } else { column = view.Columns[e.FieldName]; } return(view.GetRowCellValue(e.RowIndex, column)); }
public object GetCellValue(Vssoft.Common.Common.Class.RowClickEventArgs e) { AdvBandedGridView gbList = this.gbList; GridColumn column = new GridColumn(); if (e.ColumnIndex != -1) { column = gbList.Columns[e.ColumnIndex]; } else { column = gbList.Columns[e.FieldName]; } return(gbList.GetRowCellValue(e.RowIndex, column)); }
protected virtual void gbList_Click(object sender, EventArgs e) { if (sender is AdvBandedGridView) { AdvBandedGridView view = (AdvBandedGridView)sender; Vssoft.Common.Common.Class.RowClickEventArgs args = new Vssoft.Common.Common.Class.RowClickEventArgs((view == null) ? -1 : view.FocusedRowHandle, (view.FocusedColumn == null) ? -1 : view.FocusedColumn.ColumnHandle, (view.FocusedColumn == null) ? "" : view.FocusedColumn.FieldName); this.m_RowClickEventArgs = args; this.RaiseRowClickEventHander(args); this.ItemSelectd(args); } else { XtraMessageBox.Show("Object is not AdvBandedGridView"); } }
protected virtual void gbList_KeyDown(object sender, KeyEventArgs e) { if (sender is AdvBandedGridView) { AdvBandedGridView view = (AdvBandedGridView)sender; Vssoft.Common.Common.Class.RowClickEventArgs args = new Vssoft.Common.Common.Class.RowClickEventArgs((view == null) ? -1 : view.FocusedRowHandle, (view.FocusedColumn == null) ? -1 : view.FocusedColumn.ColumnHandle, (view.FocusedColumn == null) ? "" : view.FocusedColumn.FieldName); this.RaiseRowClickEventHander(args); this.RaiseListKeyDownEventHander(e, args); this.ucList_ListKeyDown(sender, e); this.m_RowClickEventArgs = args; if ((e.KeyCode == Keys.Delete) && (this.gbList.RowCount != 0)) { this.Delete(); this.SetMenu(this.m_RowClickEventArgs); } } else { XtraMessageBox.Show("Object is not AdvBandedGridView"); } }
protected virtual void UpdateRow(object Item, Vssoft.Common.Common.Class.RowClickEventArgs e) { }
public virtual void SetSearch(Vssoft.Common.Common.Class.RowClickEventArgs e) { }
protected virtual void SetMenu(Vssoft.Common.Common.Class.RowClickEventArgs e) { }
protected virtual void ItemSelectd(Vssoft.Common.Common.Class.RowClickEventArgs ex) { }