I tried to implement the following code,
private void _discountTable_AutoGeneratingColumn_1(object sender, GridViewAutoGeneratingColumnEventArgs
_discountTable.Columns.Style = _discountTable.HeaderRowStyle;
But i got the index out of range error, since i there is no columns available at that time. I am trying to get the style as how we are having in the excel sheet, both column and row header in the same style.