在datagridview中有多个固定行 [英] Having more than one fixed rows in datagridview
本文介绍了在datagridview中有多个固定行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何在datagridview中有多个固定行?我的意思是,默认情况下,DGV具有一个固定的行,该行成为网格的标题.我想再有一行,并通过我的代码为其分配一些数据.
请指教.
谢谢
Furqan
Hi,
How can I have more than one fixed rows in datagridview? I mean by default DGV has one fixed row that makes the header of the grid. I want to have another row and assign it some data through my code.
Please advise.
Thanks
Furqan
推荐答案
您可以将完整的列设置为只读:
Me.TheDataGridView.Columns("columnName").ReadOnly = True
You could set a complete column to readonly:
Me.TheDataGridView.Columns("columnName").ReadOnly = True
这篇关于在datagridview中有多个固定行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文