🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Changing Datagrid Column Width

#143
From: Wayne Niddery [TeamB]
Date: Thu, 22 Jun 2006 14:41
19 lines
1954 bytes
Mark wrote:
> I moved the code to the Load event, it still doesn't work, but I have
> an idea as to why that might be.
>
> I used the ellipsis on "TableStyles" to add a single table style,
> then I added columns in the "GridColumnStyles". However, I don;t see
> how any of these styles are related back to my grid. Is their a
> property somewhere that tells the grid which tableStyle to use? What
> about the grid columns? How do I relate those to columns in my grid?

Are the columns showing up when you run? Each of the columns in the 
tablestyle can be linked to fields in a datasource via the MappingName. 
Nothing else need be done to make the grid use the tablestyle.


-- 
Wayne Niddery - Winwright, Inc (www.winwright.ca)
"Bandwagons are like streetcars, there'll be another along in a few
minutes." 
Technical Details
Message-ID: <449aac02@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <448e601c@newsgroups.borland.com> <448f0fe6@newsgroups.borland.com> <4496e58b$1@newsgroups.borland.com> <4498008d$1@newsgroups.borland.com> <4498b484$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> <4498008d$1@newsgroups.borland.com> <4498b484$1@newsgroups.borland.com>
Subject: Re: Changing Datagrid Column Width
Date: Thu, 22 Jun 2006 10:41:05 -0400
Lines: 21
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: <449aac02@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1150987266 69.17.150.141 (22 Jun 2006 07:41:06 -0700)
X-Authenticated-User: wniddery
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail