如何在不使用数据库的情况下在VB.NET中的DataGridView中显示数组? [英] How to show array in DataGridView in VB.NET without using Database?

查看:68
本文介绍了如何在不使用数据库的情况下在VB.NET中的DataGridView中显示数组?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想以表格格式在column1中显示Array1。 Column2中的Array2。 Column3中的Array3。不需要数据库连接。我将在datagridview或任何表中传递4个数组,它将显示数组的内容。 array1 = column1,array2 = column2等......

I want to show Array1 in column1 in Table format. Array2 in Column2. Array3 in Column3. No need Database connection. Just i'll pass 4 arrays in datagridview or any table and it will display the contents of array. array1=column1, array2=column2 and so on....

推荐答案

A DataGridView [ ^ ]只是一个Windows控件,可以包含您想要的任何数据。您可以手动填充,逐个单元填充它,或者在它和适当的数据集之间设置一些绑定。请参阅详细数据绑定教程 [ ^ ]以获取进一步的指导。
A DataGridView[^] is just a windows control, and can contain whatever data you wish. You can populate it manually, cell by cell, or set up some binding between it and a suitable dataset. See A Detailed Data Binding Tutorial[^] for further guidance.


这篇关于如何在不使用数据库的情况下在VB.NET中的DataGridView中显示数组?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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