Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 1.0
This is the forum to discuss the Wrox book Beginning ASP.NET 1.0 with C# by Chris Goode, John Kauffman, Christopher L. Miller, Neil Raybould, S. Srinivasa Sivakumar, Dave Sussman, Ollie Cornes, Rob Birdwell, Matt Butler, Gary Johnson, Ajoy Krishnamoorthy, Juan T. Llibre, Chris Ullman; ISBN: 9780764543708
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 1.0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 28th, 2004, 11:39 PM
Authorized User
 
Join Date: Apr 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default datagrid coloumn width

Hi,
Sometimes we have a fixed width for certain columns in our DataGrid that we need to maintain. How do we need this?


 
Old April 29th, 2004, 12:04 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

use ItemStyle-Width property in design time, see below:

Code:
<asp:DataGrid id="myDataGrid" AutoGenerateColumns="False" Runat="Server">
  <Columns>
    <asp:BoundColumn HeaderText="Product Name" DataField="ProductName" ItemStyle-Width="333" />
  </Columns>
</asp:DataGrid>
HTH.

Always:),
Hovik Melkomian.





Similar Threads
Thread Thread Starter Forum Replies Last Post
export datagrid to excel with configured width sn00pyg4rfi3ld ASP.NET 1.x and 2.0 Application Design 0 October 25th, 2005 05:42 AM
DataGrid Column Width Problem demivolt ASP.NET 1.0 and 1.1 Professional 1 July 22nd, 2005 09:05 AM
Setting Column width in Datagrid anita General .NET 2 April 13th, 2005 02:25 AM
DataGrid column width johanyu VS.NET 2002/2003 0 October 30th, 2004 05:29 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.