Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > datagrid columns width

Reply
Thread Tools

datagrid columns width

 
 
jijis
Guest
Posts: n/a
 
      05-16-2005
i want to ask how to set the width of a specified column even the data
included isn't long fit with it.


 
Reply With Quote
 
 
 
 
Elton W
Guest
Posts: n/a
 
      05-16-2005
Hi Jijis,

You can use HeaderStyle and ItemStyle to set column width:

<asp:BoundColumn DataField="DataField"
HeaderText="HeaderText">
<HeaderStyle HorizontalAlign="Center"
Width="220px"></HeaderStyle>
<ItemStyle Width="220px"></ItemStyle>
</asp:BoundColumn>


HTH

Elton Wang
http://www.velocityreviews.com/forums/(E-Mail Removed)


>-----Original Message-----
>i want to ask how to set the width of a specified column

even the data
>included isn't long fit with it.
>
>
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
fixed-width column and variable-width columns mixed ssk HTML 5 10-30-2006 07:50 AM
Textbox width scaling to width of data not width of page? AndrewF ASP .Net 1 10-10-2005 04:38 PM
Binded Datagrid Formatting columns or hiding columns ton ASP .Net Web Controls 2 02-11-2004 04:09 AM
Table width and columns width kris HTML 11 11-18-2003 06:49 AM
Columns and Inherited Datagrid...Active Schema does not support columns rob thomson ASP .Net Datagrid Control 0 09-04-2003 03:09 PM



Advertisments