我想在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?
发布评论
评论(1)
是的,您可以使用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.