如何在Windows窗体应用程序中格式化数据网格视图 [英] how to format data grid view in windows form application
本文介绍了如何在Windows窗体应用程序中格式化数据网格视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Hi
我在Windows窗体应用程序中使用数组列表绑定数据网格视图
列的标题与成员名称相同数组列表
我想重新命名He Header,我想只显示几列
请帮帮我我正在使用C#.Net
Hi
I'm binding data grid view using array list in windows form application
The Header of the column are same as the member name in the array list
I want to Re Name the He Header and i want to display only few columns
Please help me I'm using C# .Net
推荐答案
您可以更改列的headerText
属性
例如grid.Columns [0] .HeaderText =First Column;
隐藏和显示列可见
到false
。
例如grid.Columns [0] .Visible = false;
You can change theheaderText
property of the columns
E.g.grid.Columns[0].HeaderText = "First Column";
To hide and show columns setVisible
tofalse
.
E.g.grid.Columns[0].Visible = false;
这篇关于如何在Windows窗体应用程序中格式化数据网格视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文