david wrote:
How to set the size of a field in DataGrid?
Right now the size is automatically set and determined by the size of
the colunm name.
If using Visual Studio, just right-click the grid and fire up the Propery
Builder, using the Format tab to modify the Column widths.
Otherwise, add a HeaderStyle tag to the html:
<asp:BoundColumn ... >
<HeaderStyle Width="150px"></HeaderStyle>
</asp:BoundColumn>
HTH,
Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.