简体   繁体   English

如何在没有数据集,数据表的网格视图中插入值

[英]How to insert the values in the gridview without dataset,datatable

Hai Freinds 海弗林德斯

I am having two textbox name empame,empid in that i am going to enter the values and insert into the grid.its is simple.but here i should not use these Datasoruce,dataset,datatable.datarow.directly if i enter it sholud go and insert in the gridview. 我有两个文本框名称empame,empid是输入值并将其插入grid.its很简单。但是在这里我不应该使用这些Datasoruce,dataset,datatable.datarow.direct如果我直接输入并插入gridview中。

Tx in advance 提前发送

The GridView can be bound to any collection that implements IEnumerable . GridView可以绑定到任何实现IEnumerable 集合

If you don't want to use a DataTable or DataSet you could create an ArrayList and bind the DataGrid to that. 如果您不想使用DataTable或DataSet,则可以创建一个ArrayList并将DataGrid绑定到该列表。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM