Hi JerryP,
Does the checkbox you mentioned refers to the one which is the default
mapping for boolean column on datatable?
However,I'm not clear why you need the auto-resize function on checkbox
column.
Since the width check-box and the header text of the column are both fixed,
You may try setting the width to a fixed size by setting the
ColumnStyle.Width property.
Does this solve your problem?
Please let me know if my understanding is not correct or you have anything
unclear about this issue!
Thanks!
Best regards,
Ying-Shen Yu [MSFT]
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "AS IS" with no warranties and confers no rights.
You should not reply this mail directly, "Online" should be removed before
sending, Thanks!
--------------------
| From: "ClayB [Syncfusion]" <
[email protected]>
| References: <
[email protected]>
| Subject: Re: Datagrid Resize
| Date: Fri, 17 Oct 2003 12:59:00 -0400
| Lines: 34
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2720.3000
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2727.1300
| Message-ID: <
[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.windowsforms
| NNTP-Posting-Host: adsl-068-213-146-231.sip.rdu.bellsouth.net
68.213.146.231
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.windowsforms:54682
| X-Tomcat-NG: microsoft.public.dotnet.framework.windowsforms
|
| Have you tried the technique in this FAQ?
|
| George Shepherd's Windows Forms FAQ contains an entry entitled:
|
| How can I autosize a column in my datagrid?
|
| Check it out at:
|
http://www.syncfusion.com/faq/winforms/search/877.asp
|
| =============================================
| Clay Burch, MVP
|
| Syncfusion, Inc.
| visit
http://www.syncfusion.com for .NET Essentials
|
|
| | > Hello Group,
| >
| > is there a way to automagically resize the cols in the datagrid
(Winform)
| to
| > best fit ?
| >
| > I found one sample but after running the code all cells are text - but I
| > have some cells as checkbox defined,...
| >
| > Thanks !!
| >
| > Jerry
| >
| >
|
|
|