如何在c#中自定义DatagridView(How to customize DatagridView in c#)

编程入门 行业动态 更新时间:2024-10-28 21:16:48
如何在c#中自定义DatagridView(How to customize DatagridView in c#)

在datagridview中,当我们需要显示值时,它将显示如下所示。

用户1

用户2

用户3

现在我的要求是,我说只有一列和大约100个数据。 我想显示如下。

用户1用户4用户7

用户2用户5用户8

用户3用户6用户9

在c#中是否可以这样做?

In datagridview, when we need to show value than it will display as below.

User 1

User 2

User 3

Now my requirement is that, say i have only single column and about 100 data. I want to display as below.

User 1 User 4 User 7

User 2 User 5 User 8

User 3 User 6 User 9

Is it possible to this in c#.?

最满意答案

我能够创建包含多个列的新数据表。

请参阅此链接: Datagrid:将单列拆分为多个

感谢GaryTexmo

I am able to create my new datatable with several columns.

Refer this link : Datagrid: Break single column to multiple

Thanks to GaryTexmo

更多推荐

本文发布于:2023-08-03 01:44:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1382536.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:自定义   如何在   customize   DatagridView

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!