Ejemplo n.º 1
0
        private void DataGridViewUserControl_GridColumnHeaderMouseClick(object sender,
                                                                        GridColumnHeaderMouseClickEventArgs e)
        {
            DataGridViewUserControl dgwuc = sender as DataGridViewUserControl;

            if (dgwuc != null)
            {
                dgwuc.onColumnHeaderMouseClick <Element>(e.DataGridViewCellMouseEventArgs);
            }
        }
Ejemplo n.º 2
0
        protected virtual void OnGridColumnHeaderMouseClick(
            GridColumnHeaderMouseClickEventArgs e)
        {
            // Save the delegate field in a temporary field for thread safety
            EventHandler <GridColumnHeaderMouseClickEventArgs> temp = GridColumnHeaderMouseClick;

            if (temp != null)
            {
                temp(this, e);
            }
        }
Ejemplo n.º 3
0
 private void DataGridViewUserControl_GridColumnHeaderMouseClick(object sender,
     GridColumnHeaderMouseClickEventArgs e)
 {
     DataGridViewUserControl dgwuc = sender as DataGridViewUserControl;
     if (dgwuc != null)
         dgwuc.onColumnHeaderMouseClick<Element>(e.DataGridViewCellMouseEventArgs);
 }