473,327 Members | 1,967 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

DataGrid - Stretching Empty Column

Hey all,

How do things like Windows Explorer and other applications get an empty
column at the end of a data grid that stretches the entire width?

Look at this picture:
http://www.grozzler.com/dump/dt_want.png

See how that final column is empty and stretches the entire width
instead of leaving a giant hole like this:
http://www.grozzler.com/dump/dt_mine.png

Any ideas?

Thanks guys.

Nov 17 '05 #1
2 1719
Hi,

IMO Exlorer is a ListView , not a datagrid
With a listview this is the default behavior if the sum of the width of the
columns is less than the width of the control
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"GroZZleR" <gr******@gmail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
Hey all,

How do things like Windows Explorer and other applications get an empty
column at the end of a data grid that stretches the entire width?

Look at this picture:
http://www.grozzler.com/dump/dt_want.png

See how that final column is empty and stretches the entire width
instead of leaving a giant hole like this:
http://www.grozzler.com/dump/dt_mine.png

Any ideas?

Thanks guys.

Nov 17 '05 #2
Hi,

How do to this?
Just hook the resize event and either insert an empty column with the
difference between the control width and the sum of the width of the other
columns or just resize the last column as needed
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"GroZZleR" <gr******@gmail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
Hey all,

How do things like Windows Explorer and other applications get an empty
column at the end of a data grid that stretches the entire width?

Look at this picture:
http://www.grozzler.com/dump/dt_want.png

See how that final column is empty and stretches the entire width
instead of leaving a giant hole like this:
http://www.grozzler.com/dump/dt_mine.png

Any ideas?

Thanks guys.

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Frnak McKenney | last post by:
One of the reasons given for the Allied victory in WWI is that the Nazi armament industry invested so much effort in creating new weapons (e.g. the jet plane) it wasn't able to develop any of them...
9
by: tshad | last post by:
I have a datagrid that I want to add a new column to. This column will only be visible under certain conditions. So I want to set the column visible=false. Then when the right condition happens...
1
by: jimb | last post by:
I can get the dropdownlist into the datagrid, and I can populate it, but I can't read it. Anybody have a working example of a dropdownlist in an editable grid? Thanks. -- .....
13
by: pmcguire | last post by:
I have a DataGrid control for which I have also created several new extended DataGridColumnStyles. They behave pretty nicely, but I can't figure out how to implement Selected Item formatting for...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.