更改数据表的列长. [英] Altering data table's column length.

查看:57
本文介绍了更改数据表的列长.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个应用程序,其中我必须将数据表与网格视图绑定,并且我想更改数据表的列宽,并且还要从.cs flie中执行该操作?

I am developing an application in which i have to bind data table with a grid view and i want to change width of columns of data table and that also from a .cs flie how can i do that?

推荐答案

使用: MSDN: GridViewColumn.Width属性 [ ^ ]

在VB.NET中的示例:动态设置gridview列的宽度当AutoGenerateColumns ="true" [
Use: MSDN: GridViewColumn.Width Property [^]

Sample of it in VB.NET: Set Width of gridview columns dynamically when AutoGenerateColumns="true"[^]


这篇关于更改数据表的列长.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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