Article View: borland.public.delphi.winforms.controls.using
Article #139Re: Changing Datagrid Column Width
From: Mark
Date: Mon, 19 Jun 2006 17:57
Date: Mon, 19 Jun 2006 17:57
17 lines
1595 bytes
1595 bytes
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? "Wayne Niddery [TeamB]" <wniddery@chaffaci.on.ca> wrote in message news:448f0fe6@newsgroups.borland.com... > Mark wrote: >> How do I alter the column width in a grid of type >> System.Windows.Forms.DataGrid? > > Datagrid1.TableStyles[0].GridColumnStyles[0].Width := 100; > > -- > Wayne Niddery - Winwright, Inc (www.winwright.ca) > Working for yourself is great because you get to work half days, and > you can choose any twelve hours you want. >
Technical Details
Message-ID:
<4496e58b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.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-mailReferences:
<448e601c@newsgroups.borland.com> <448f0fe6@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> Subject: Re: Changing Datagrid Column Width Date: Mon, 19 Jun 2006 13:57:35 -0400 Lines: 19 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.208.54.146 Message-ID: <4496e58b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1150739851 69.208.54.146 (19 Jun 2006 10:57:31 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.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