在FOOTER上单击“链接"按钮时,在Gridview中插入一个空行 [英] Insert an Empty row in Gridview while Clicking Linkbutton at the FOOTER

查看:54
本文介绍了在FOOTER上单击“链接"按钮时,在Gridview中插入一个空行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

再见,


我有一个带有一个Dropdownlist和三个文本框的网格.最初,在页面加载时,我绑定了五行.如果假设用户要添加新行,则在底部放置一个链接"按钮.当用户单击该Linkbutton时,我想添加一个新行(包含1个下拉列表和3个文本框).

我还需要分页概念来包括...正如我在一开始提到的,我只有5行要显示.如果我添加新行,则该行应出现在下一页的第六个位置.


该怎么做?
请用一些代码示例进行解释.

解决方案

要在Gridview中添加新行,可以向数据集中添加新行,然后再次绑定列表.
休息所有这些新手编程示例已经很容易获得.因此,只需在提出问题之前进行搜索即可.


创建DataTable,从gridview行中添加具有值的行,并添加一个额外的空行并重新绑定gridview. >

hi again,


i have an grid with one Dropdownlist and three textboxes. Initially, at the page load i have bind an five rows. if suppose user wants to add an new row, i have placed an Linkbutton at bottom. when the user click that Linkbutton, i want to add an new row(Contains 1 dropdownlist and 3 textboxes).

Also i need Paging Concept to include...As i mention at the beginning i have only 5 rows to display. If i add an new row this should appear at the sixth position of the next page.


How to do that?
Please explain it with some code sample...

解决方案

For adding new row in your Gridview you can add a new row to your dataset and just bind the list again.
Rest all these novice programming samples are already available easily. So just search for it before raising a question.


create DataTable add rows with value from gridview row and add one extra empty row and rebind gridview.


这篇关于在FOOTER上单击“链接"按钮时,在Gridview中插入一个空行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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