Пример #1
0
    protected virtual void OnCustomHeaderTableCellCreated(CustomHeaderEventArgs e)
    {
        EventHandler <CustomHeaderEventArgs> handler = CustomHeaderTableCellCreated;

        // Event will be null if there are no subscribers
        if (handler != null)
        {
            // Use the () operator to raise the event.
            handler(this, e);
        }
    }
Пример #2
0
    void GridViewExtension1_CustomHeaderTableCellCreated(object sender, CustomHeaderEventArgs e)
    {
        TableRow tc = (TableRow)e.HeaderRow;

        tc.BackColor = System.Drawing.Color.AliceBlue;
    }