Article View: borland.public.delphi.winforms.controls.using
Article #144Re: Changing Datagrid Column Width
From: Mark
Date: Fri, 23 Jun 2006 22:19
Date: Fri, 23 Jun 2006 22:19
27 lines
2223 bytes
2223 bytes
Yes, the columns and data show up at design and runtime. I mapped the tablestyle columns to fields and changed the column width, but no changes to the grid occur. How does the grid know which tablestyle to use? "Wayne Niddery [TeamB]" <wniddery@chaffaci.on.ca> wrote in message news:449aac02@newsgroups.borland.com... > 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:
<449c6901$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<448e601c@newsgroups.borland.com> <448f0fe6@newsgroups.borland.com> <4496e58b$1@newsgroups.borland.com> <4498008d$1@newsgroups.borland.com> <4498b484$1@newsgroups.borland.com> <449aac02@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 From: "Mark" <marka34@hotmail.com> 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> <449aac02@newsgroups.borland.com> Subject: Re: Changing Datagrid Column Width Date: Fri, 23 Jun 2006 18:19:46 -0400 Lines: 29 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.218.218.189 Message-ID: <449c6901$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1151101185 69.218.218.189 (23 Jun 2006 15:19:45 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail