Gidview空行 [英] Gidview empty rows

查看:154
本文介绍了Gidview空行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想用DropdownList绑定网格视图的第一列,其余的列应该为空.

当我从下拉列表中选择任何一项时,它将填充列,并将生成带有下拉列表和空行的新行.

我以不同的方式尝试了此操作,并且能够将网格与dropdownlist绑定,但它显示了项目总数行.
我想第一次只显示一行.

请告诉我.

最后,当我单击保存"按钮时,所有记录将被插入数据库.

我需要像这样

产品名称所需数量备注
-------------------------------------------------- -------
电池充电器空空

但是我是第一次这样.

产品名称所需数量备注
-------------------------------------------------- -------
电池充电器空空
记事本笔空空
xxx空空



问候,
Jeevan.

Hi,

I want to bind grid view first column with DropdownList and remaining columns should be empty.

When I select any one of the items from the dropdownlist it will fill the columns and it will generate new row with dropdownlist and empty rows.

I tried for this in different ways and I am able to bind the grid with dropdownlist but it displays total items rows.
I want to display at the first time only one row.

Please advise me.

At last when I click on save button those all records will be inserted into the database.

I need exactly like this

Product Name Qty Required Remarks
---------------------------------------------------------
Battery Charger empty empty

But I am getting at first time like this.

Product Name Qty Required Remarks
---------------------------------------------------------
Battery Charger empty empty
Notepad Pen empty empty
xxx empty empty



Regards,
Jeevan.

推荐答案

您可以尝试此链接吗?
http://geekswithblogs.net/dotNETvinz/存档/2009/06/04/adding-dynamic-rows-in-gridview-with-textboxes.aspx [
can you try this link
http://geekswithblogs.net/dotNETvinz/archive/2009/06/04/adding-dynamic-rows-in-gridview-with-textboxes.aspx[^]


也请进行此检查.这将帮助您
在GridView中添加空行 [
Check this too .It will help you
Adding Empty Rows in GridView[^]


这篇关于Gidview空行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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