如何生成简单表? [英] how to generate simple Table?

查看:81
本文介绍了如何生成简单表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hiii我想生成示例表视图,该视图可以在不使用SQL的情况下以编程方式最大化未加工数量

thanx

hiii i want to generate sample table view which i can maximize the raws number programmatical without the using of SQL

thanx

推荐答案

由于您没有说这是Winforms,WPF还是Web,因此我假设使用Winforms:
Since you don''t say if this is Winforms or WPF, or web, I assume Winforms:
DataGridView myDataGridView = new DataGridView();
myDataGridView.Size = new Size(300, 200);
Controls.Add(myDataGridView);
myDataGridView.Columns.Add("First", "First Column");
myDataGridView.Columns.Add("Second", "Second Column");
myDataGridView.Rows.Add(1, "First Row, second column");
myDataGridView.Rows.Add(1, "First Row, second column");
myDataGridView.Rows.Add(2, "Second Row, second column");
myDataGridView.Rows.Add(17, new Point(120, 240));


[
This[^] little DataTable sample could help you out as well.


这篇关于如何生成简单表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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