如何增加最后一列的宽度以适合整个网格 [英] How To increase the last column width to fit to entire grid

查看:61
本文介绍了如何增加最后一列的宽度以适合整个网格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何增加最后一列的宽度以适合整个网格?
我使用DataGrid来显示记录,并使用Dataset从数据库中加载数据..

How To increase the last column width to fit to entire grid?
im using The DataGrid to show records and Dataset to load datafrom database..

推荐答案

(假设WPF/XAML DataGrid)

将列的宽度设置为"*"

从本质上讲,这意味着要占用其余空间.

请注意,自动"将占用所需的空间.
(Assumming WPF/XAML DataGrid)

Set the width of the column to "*"

That essentially means consume the rest of the space.

Note that "Auto" will consume the needed space.


这篇关于如何增加最后一列的宽度以适合整个网格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆