Click to See Complete Forum and Search --> : datagrid column sizing


EyeTalion
02-06-2003, 10:20 AM
How do you size the columns in a datagrid? Seems like it should be something simple, like in the properties, but I don't see anything there...

Ribeyed
02-07-2003, 05:33 AM
hi,
DataGrid maybe an ASP.NET datagrid???????

<asp: DataGrid
ID="YourID"
AutoGenerateColumns="False"
CellPadding="10"
Runat="Server">
<Columns>
<asp:BoundColumn
HeaderText="Your heading"
DataField="yourDatafield"/>
<asp:ButtonColumn
CommandName="Select"
Text="Select !" />
</Columns>
</asp: DataGrid>

EyeTalion
02-07-2003, 07:36 AM
thanks, and yes it was asp.net web control....