Beispiel #1
0
        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);
        }
Beispiel #2
0
        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));
        }
Beispiel #3
0
        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));
        }
Beispiel #4
0
 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");
     }
 }
Beispiel #5
0
 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");
     }
 }
Beispiel #6
0
 protected virtual void UpdateRow(object Item, Vssoft.Common.Common.Class.RowClickEventArgs e)
 {
 }
Beispiel #7
0
 public virtual void SetSearch(Vssoft.Common.Common.Class.RowClickEventArgs e)
 {
 }
Beispiel #8
0
 protected virtual void SetMenu(Vssoft.Common.Common.Class.RowClickEventArgs e)
 {
 }
Beispiel #9
0
 protected virtual void ItemSelectd(Vssoft.Common.Common.Class.RowClickEventArgs ex)
 {
 }