🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.winforms.controls.using
Article #141

Re: Changing Datagrid Column Width

#141
From: Wayne Niddery [TeamB]
Date: Tue, 20 Jun 2006 14:04
14 lines
1664 bytes
Mark wrote:
> I added a tble style in the Object Inspector and ran the code under a
> button, but the column width doesn't change. Is there something else
> that I have to do?
>>
>>  Datagrid1.TableStyles[0].GridColumnStyles[0].Width := 100;

Shouldn't be - this has worked fine for me. The only difference is I'm doing 
it in the Form Load event. Don't see why it wouldn;t work elsewhere though.

-- 
Wayne Niddery - Winwright, Inc (www.winwright.ca)
"It used to be that other people's achievements were considered an
inspiration, not a grievance." 
Technical Details
Message-ID: <4498008d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <448e601c@newsgroups.borland.com> <448f0fe6@newsgroups.borland.com> <4496e58b$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1eff29,e3d74b8ff004d8d3
X-Google-Attributes: gid1eff29,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Wayne Niddery [TeamB]" <wniddery@chaffaci.on.ca>
From: "Wayne Niddery [TeamB]" <wniddery@chaffaci.on.ca>
Newsgroups: borland.public.delphi.winforms.controls.using
References: <448e601c@newsgroups.borland.com> <448f0fe6@newsgroups.borland.com> <4496e58b$1@newsgroups.borland.com>
Subject: Re: Changing Datagrid Column Width
Date: Tue, 20 Jun 2006 10:04:58 -0400
Lines: 16
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 69.17.150.141
Message-ID: <4498008d$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1150812301 69.17.150.141 (20 Jun 2006 07:05:01 -0700)
X-Authenticated-User: wniddery
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail