By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,070 Members | 1,238 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,070 IT Pros & Developers. It's quick & easy.

DataGrid - Stretching Empty Column

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.