/// <summary>
        /// Extends BeginInvoke so that when a state object is not needed, null does not need to be passed.
        /// <example>
        /// datagridviewrowpostpainteventhandler.BeginInvoke(sender, e, callback);
        /// </example>
        /// </summary>
        public static IAsyncResult BeginInvoke(this DataGridViewRowPostPaintEventHandler datagridviewrowpostpainteventhandler, Object sender, DataGridViewRowPostPaintEventArgs e, AsyncCallback callback)
        {
            if (datagridviewrowpostpainteventhandler == null)
            {
                throw new ArgumentNullException("datagridviewrowpostpainteventhandler");
            }

            return(datagridviewrowpostpainteventhandler.BeginInvoke(sender, e, callback, null));
        }
Ejemplo n.º 2
0
 public DataGridViewEx()
 {
     showRowHeaderNumbers = true;
     RowPostPaint        += new DataGridViewRowPostPaintEventHandler(DataGridViewEx_RowPostPaint);
 }
Ejemplo n.º 3
0
 public static void RaiseDatagridviewRowpostpaintEvent(object objectRaisingEvent, DataGridViewRowPostPaintEventHandler controlEventHandlerRaised, DataGridViewRowPostPaintEventArgs controlEventArgs)
 {
     controlEventHandlerRaised?.Invoke(objectRaisingEvent, controlEventArgs);
 }