Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > DataGrid webpart - how to control column width? View modes: 
User avatar
Member
Member
tripletdad99 - 10/27/2009 2:10:37 PM
   
DataGrid webpart - how to control column width?
With the DataGrid webpart... how does one go about setting the width of individual columns? I can specify which columns I wish to display, but I do not appear to have any way to specify what width I want that column to be. Also, I would like to know how to set the width of the of the overall DataGrid itself - say to 100% or 800px (etc).

User avatar
Kentico Developer
Kentico Developer
kentico_ondrejv - 10/28/2009 4:02:10 PM
   
RE:DataGrid webpart - how to control column width?
Hello,

For that purpose I'd like to recommend you to create new webpart: http://devnet.kentico.com/docs/devguide/developing_web_parts.htm and place there standard .NET Datagrid control and declare columns element with BoundColumn controls . Please see more details here: http://authors.aspalliance.com/aspxtreme/webforms/controls/addingboundcolumnstodatagrid.aspx

I believe it will work as expected.

Best regards
Ondrej Vasil