在SQLCE表格中修改列宽度&显示该数据的表单 [英] Amending Column Widths In SQLCE Table & The Form That Displays That Data

查看:90
本文介绍了在SQLCE表格中修改列宽度&显示该数据的表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的SQLCE表的Outlook 2010中显示一个表单,但表(如果我显示表数据)和表单上的数据都有列宽度,不显示所有数据。



与在Excel中一样,如果我双击列标题末尾的行,则列将扩展为与最长条目一样大。



有没有办法让这种情况自动发生,无需手动双击?

I am displaying a Form within Outlook 2010 of my SQLCE Table, but both the Table (if I "Show Table Data") and the data on the Form have Column Widths that do not show all of the data.

As in Excel, if I double-click on the line at the end of the Column Header, the Column will expand to be as big as the longest entry.

Is there a way of making this occur automatically, without manually having to double-click ?

推荐答案

如果你是使用DataGridview,有一个属性 AutoSizeColumnsMode 。将值设置为 AllCells
If you are using a DataGridview, there is a property AutoSizeColumnsMode. Set the value as AllCells


这篇关于在SQLCE表格中修改列宽度&显示该数据的表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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