Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Datagrid keeps changing size(length and width)

Status
Not open for further replies.

Vandy02

Programmer
Jan 7, 2003
151
0
0
US
I have a datagrid bound to a dataset from a database...
The grid grows as the total count increases...that is fine as I don't have that many records. Yet when it grows it changes the size of the grid.

Is there a way where I can keep the column sizes and fonts the same size no matter how many records I have? For some reason it changes size
 
you can control the width of the datagrid column

Code:
mydg.Columns(0).ItemStyle.Width = new Unit(150,UnitType.Pixel)

good luck

What would you attempt to accomplish if you knew you would not fail?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top