Wrox Programmer Forums
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional 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 18th, 2008, 06:30 AM
Registered User
 
Join Date: Apr 2008
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Default How can i fix width (GridView)

Hi,
Can anybody tell me how to set d witdth of perticuler column of the GridView control on page_load or gridview_load event..

Vish
 
Old April 18th, 2008, 09:43 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 428
Thanks: 57
Thanked 2 Times in 2 Posts
Default

This worked for me in a WINDOWS application:

dgtbcColumnStyle = New DataGridTextBoxColumn()

dgtbcColumnStyle.Width = 100

TableStyle.GridColumnStyles.Add(dgtbcColumnStyle)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Set Column width in Gridview as constant. aarunlal ASP.NET 2.0 Professional 4 April 24th, 2011 12:48 PM
Need xref Fix ~Bean~ SQL Language 2 October 5th, 2005 02:45 PM
Help! How do I fix this? missusfinz Crystal Reports 1 April 1st, 2005 12:27 PM
Fix table column width?? Snib HTML Code Clinic 2 January 4th, 2004 03:22 PM
Width in pixels from width in percentage bsausser Classic ASP Basics 1 December 31st, 2003 02:31 PM





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