Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

set the width of dataGrid column

0 views
Skip to first unread message

Joko suprianto

unread,
Mar 13, 2005, 3:13:11 AM3/13/05
to
Hi, i want to ask how to set the width of each of the
column on the datagrid. im using vb.net
because from what i know in vb.net we have
DataGrid1.TableStyles(0).GridColumnStyles(2).width = 150
that can set the width in datagrid column, but i couldnt
use this method in asp.net

thax

Nicole Legroe

unread,
Mar 13, 2005, 6:31:10 AM3/13/05
to
You can set the width of each column in the Property Builder of the datagrid
Define the columns you want in the Columnstab
set the width in the Formattab

"Joko suprianto" <anon...@discussions.microsoft.com> schreef in bericht
news:662501c527a4$7f58e820$a501...@phx.gbl...

Joko

unread,
Mar 13, 2005, 9:54:26 AM3/13/05
to
But i want to set it dynamically, do you know how to do
it?

>.
>

Maarten

unread,
Dec 8, 2005, 4:01:25 PM12/8/05
to
Hi i have the same problem
did you find an answer to youre question?.


From http://www.developmentnow.com/g/8_2005_3_0_0_190539/set-the-width-of-dataGrid-column.htm

Posted via DevelopmentNow.com Groups
http://www.developmentnow.com

Maarten

unread,
Dec 8, 2005, 4:02:26 PM12/8/05
to

Maarten

unread,
Dec 8, 2005, 4:02:35 PM12/8/05
to

Sarah

unread,
May 7, 2008, 12:09:37 AM5/7/08
to
this DataGrid1.TableStyles(0).GridColumnStyles(2).width = 150
can use in vb.net??? i'm trying but i can't. please help me.

From http://www.developmentnow.com/g/8_2005_3_0_0_190539/set-the-width-of-dataGrid-column.ht

0 new messages