I am trying to increase the size of column in my gridview.
I have tried to use
Referral_Gridview.Columns.ItemStyle.Width = Unit.Pixel(100);
but i get the following error:
Index was out of range. Must be non-negative and less than the size of the collection.
For reasons too long to explain I am not binding my data using asp, but rather C#
Can anybody help.