复杂的GridView数据:查看和编辑

发布于 2025-02-03 12:10:21 字数 841 浏览 2 评论 0 原文

我想在GridView中以下面的格式显示和更新数据,第一列是选择“选择特定记录的复选框,最后一列是将记录更新为已付费或未付费的记录 总账单金额将增加所有产品成本,在该比尔诺

选择支票 日期 账单无 产品名称 产品成本 总账单金额 /未付
2-2-22 ABC123 AA11 10 30
BB11 20
3-4-22 AAC124 PP12 25 100
QQ21 25
RR54 50

它就像一个串联数据。 我无法决定使用的控件。 我是否应该在网格中使用表,还是还有其他更好的选择? 如何处理?桌子可能有很多记录,最好的方法是什么? 我必须使用中继器控制吗?

I want to show and Update the data in the below format in a gridview, First column would be select checkbox to select particular records and last column is to update the record as paid or Unpaid
Total Bill Amount will give the addition of all the product cost in that billno

select Check Date Bill no Product Name Product Cost total bill amount Paid/UnPaid
2-2-22 ABC123 aa11 10 30
bb11 20
3-4-22 AAC124 pp12 25 100
qq21 25
rr54 50

It is like a crosstab data.
I am not able to decide the control to use.
Whether I should use the Table inside a grid or is there another better option ?
how to deal with it? what is the best way as the table may have many records?
Do I have to use repeater control for this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

○愚か者の日 2025-02-10 12:10:21

是的,您可以使用Nested GridView在GridView Control本身中实现这一目标。

链接:

根据您的设计要求修改。

yes you can achive that in Gridview control itself, by using nested gridview.

Link : https://www.aspsnippets.com/Articles/Gridview-inside-Gridview-in-ASPNet-using-C-and-VBNet.aspx

modify as per you design requirement.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文