什么是asp.net中的行数据绑定? [英] what is row data bind in asp.net?

查看:78
本文介绍了什么是asp.net中的行数据绑定?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮忙解决这个问题..

please help to solve this question..

推荐答案





hv一看文章下方:



http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.rowdatabound.aspx [ ^ ]



希望它有所帮助。



regrds

anurag


hv a look at te below article:

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.rowdatabound.aspx[^]

hope it helps.

regrds
anurag


RowDataBound - 当数据绑定到该行时,为网格中的每一行调用事件。

这也包括你的标题。



你可以使用此事件来获取绑定时的数据值。应用你的逻辑。

Ex。如果要求对于特定列值大于50,则使用RED& BOLD字体。



您应该非常小心使用此事件,因为大量数据会导致性能问题,因为每个行都会调用事件。如果你添加要在每一行执行的逻辑..它将需要更多时间...



以下链接将为您提供更多详细信息: -





http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.onrowdatabound.aspx [ ^ ]
RowDataBound - Is event getting called for each row in grid when data is binding to that row.
This include your header also.

You can use this event to get the data values at the time of binding & apply your logic.
For Ex. If there is requirement that if for perticular column values is greater than 50 render the value with RED & BOLD font.

You should be very carefull using this event because large amount of data will cause performance issue as the event will be called for every row & if you add logic to be performed on every row.. it will require more time...

Below link will provide you more details:-


http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.onrowdatabound.aspx[^]


您好,

请从 http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.rowdatabound.aspx [ ^ ]和 http://www.tomot.de/en-us/article/7/asp.net / gridview-overview-of-ways-to-bind-data-to-columns [ ^ ]



上述链接可能对您有所帮助
Hi,
Please get brief description from http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.rowdatabound.aspx[^] and from http://www.tomot.de/en-us/article/7/asp.net/gridview-overview-of-different-ways-to-bind-data-to-columns[^]

The above links may be helpful to you


这篇关于什么是asp.net中的行数据绑定?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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