Wrox Programmer Forums
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 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 October 30th, 2004, 05:33 AM
Authorized User
 
Join Date: Sep 2004
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default DataGrid column width

Hi,

I am using DataGrid to update my database, anything is working fine. I got problem to set the width of column after click Edit.

I am using "asp:EditCommandColumn" and "OnEditCommand"
And the code as bellow:
DataGrid1.EditItemIndex = e.Item.ItemIndex

Any reply will be very appreciate.

sq
 
Old November 2nd, 2004, 05:52 PM
Registered User
 
Join Date: Aug 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi, instead of using BoundColumn in your datagrid, use template Columns. And then set your column width inside <EditItemTemplate> </EditItemTemplate> tags.

Kai






Similar Threads
Thread Thread Starter Forum Replies Last Post
Align or increase width for 1 column in DataGrid remya1000 General .NET 1 June 17th, 2008 04:21 PM
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
Datagrid Column Width resize problem Deadseven VS.NET 2002/2003 0 September 28th, 2004 09:02 AM





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