如何以之字形显示datagridview? [英] how to display datagridview in zigzag manner?

查看:117
本文介绍了如何以之字形显示datagridview?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,

我是vb.net的新手,

我需要编码帮助来显示要以锯齿形方式在datagridview中检索的sql数据值.

例如

hi friends,

I am new to vb.net,

I need a coding help for displaying the sql datavalues to be retrieved in a datagridview in a zigzag manner.

for example

1  8  9   16
2  7  10  15 
3  6  11  14
4  5  12  13


我需要在datagridview中使用上述方法....请在vb.net中给我解决方案吗?

预先感谢


i need the above method in datagridview ....kindly give me the solution in vb.net?

thanks in advance

推荐答案

简单的解决方案是创建一个DataTable,根据您的要求填充它,然后绑定到DataGridView.
The simple solution is create a DataTable, populate it as per your requirement and then bind to the DataGridView.


这篇关于如何以之字形显示datagridview?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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