gridview column size

quioske

Active member
Joined
Feb 25, 2008
Messages
27
Programming Experience
1-3
hi,

i want to restrict the gridview column size .

i don't want data to be displayed too much .

its an urgent

any one knows it
 
I would go into the BoundField properties for the GridView and then set the Width under the ItemStyle section.

If you have to do it programmatically you could always do something like

VB.NET:
Protected Sub GridView1_Init(ByVal sender As Object, ByVal e As System.EventArgs) _
Handles GridView1.Init
    GridView1.Columns.Item(1).ItemStyle.Width = 250
End Sub
 
Back
Top