数据网格高度是项目数*单个项目的高度。 [英] Data grid height is number of items * height of individual item.

查看:57
本文介绍了数据网格高度是项目数*单个项目的高度。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个表格,数据网格在那里我已经将一个集合绑定到该数据网格。该集合的项目为100,以便数据网格扩展到所有这些。



技巧应用:

1.提到高度:我的表格是决议独立的。需要按照用户需要拉伸



预期行为:屏幕应打开,其高度可以提及,并且允许用户重新调整表单大小。

I have a form on which data grid is there i have binded a collection to that data grid. that collection has items say 100 so that data grid expands to all of them.

Tricks applied :
1. mentioned Height : My form is resolution independent. Need to stretch as user wants

Expected behavior : screen should open with a height that can be mentioned and user is allowed to re-size my form.

推荐答案

您是否尝试将数据网格插入tableLayoutPanel。



您可以然后停靠tableLayoutPanel,然后datagrid将拉伸到表单大小。
have you tried to insert you data grid into a tableLayoutPanel.

You can then dock the tableLayoutPanel and then the datagrid will stretch to the form size.


这篇关于数据网格高度是项目数*单个项目的高度。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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