VB .NET中的DataGrid视图 [英] DataGrid View in VB .NET

查看:61
本文介绍了VB .NET中的DataGrid视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,


谁能告诉我如何在DataGridView中禁用排序.

我已经看到一个选项"Notsortable",但这是专栏文章.

因此,我们需要为此编写一个循环以禁用所有列的排序.

是否有任何选项可以在网格级别禁用?






问候,

Ragamaie

Hi Friends,


Can any one tell me how to disable sorting in DataGridView.

I already saw one option ''Notsortable'' but it is column wise.

So we need to write a loop for that to disable sorting for all columns.

Is there any option to disable at grid level?






Regards,

Ragamaie

推荐答案

隐藏标头&通过设置
之类的属性来添加新的自定义标头

DataGridViewHeaderBorderStyle.None&
DataGridViewHeaderBorderStyle.Raised
Hide the header & Add a new custom header by setting the properties like


DataGridViewHeaderBorderStyle.None &
DataGridViewHeaderBorderStyle.Raised


这篇关于VB .NET中的DataGrid视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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