PC Review


Reply
Thread Tools Rate Thread

Different Column Widths

 
 
=?Utf-8?B?Um9nZXI=?=
Guest
Posts: n/a
 
      17th Nov 2006
I am trying to do a 'simple' task in a DGV control.
The problem is this.
I have an unbound DGV with all 'AllowUser' options disabled.
RowHeader.Visible=False
ColumnHeader.Text is labelled as needed.
For simplicity the DGV has 7 columns and 15 rows.
The 15 rows are populated and the DGV is made visible.
Everything is just fine.
But now I want rows 6,7 and 11,12 to have different column spacing to the
other rows.
I have not been able to find a way.
I tried hanlding the DGV.CellFormatting Event but cant get the desired
results.
In other words I want one DGV control to have different column widths
depending on row number?

Can anyone out there help?

Thanks
--
Roger

--
Roger
 
Reply With Quote
 
 
 
 
RobinS
Guest
Posts: n/a
 
      18th Nov 2006
This can not be done with the DataGridView control.

Robin S.
--------------------------------------------
"Roger" <(E-Mail Removed)> wrote in message
news:9E142314-BBD0-453C-846C-(E-Mail Removed)...
>I am trying to do a 'simple' task in a DGV control.
> The problem is this.
> I have an unbound DGV with all 'AllowUser' options disabled.
> RowHeader.Visible=False
> ColumnHeader.Text is labelled as needed.
> For simplicity the DGV has 7 columns and 15 rows.
> The 15 rows are populated and the DGV is made visible.
> Everything is just fine.
> But now I want rows 6,7 and 11,12 to have different column spacing to the
> other rows.
> I have not been able to find a way.
> I tried hanlding the DGV.CellFormatting Event but cant get the desired
> results.
> In other words I want one DGV control to have different column widths
> depending on row number?
>
> Can anyone out there help?
>
> Thanks
> --
> Roger
>
> --
> Roger



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Different widths for each column in a 100% stacked column chart Chart Explorer Microsoft Excel Charting 1 21st May 2009 09:19 AM
HOW DO I CREATE TWO COLUMN WIDTHS IN ONE COLUMN DIFFERENT ROW IN E LIZZIE Microsoft Excel New Users 1 12th Jan 2008 11:17 PM
Multiple Column Report With Varying Column Widths =?Utf-8?B?bWNnag==?= Microsoft Access 5 5th Nov 2006 08:28 PM
how do I set different column widths for same column in one excell =?Utf-8?B?Ymxvb21pbmdidXp6?= Microsoft Excel Misc 1 26th Jul 2006 01:49 PM
I wish to have multiple column widths for a the same column. =?Utf-8?B?R2FyeSBEaWtpbg==?= Microsoft Excel Worksheet Functions 4 6th Jun 2005 08:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:02 PM.