using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Web.UI.WebControls;
using System.Web.UI;
namespace YYControls
![](http://static.javashuo.com/static/loading.gif)
{
/// <summary>
/// SmartGridView類的事件部分
/// </summary>
public partial
class SmartGridView
![](http://static.javashuo.com/static/loading.gif)
{
private
static
readonly
object rowDataBoundDataRowEventKey =
new
object();
/// <summary>
/// RowDataBound事件中的DataControlRowType.DataRow部分
/// </summary>
![](http://static.javashuo.com/static/loading.gif)
[Category(
"擴展")]
public
event RowDataBoundDataRowHandler RowDataBoundDataRow
![](http://static.javashuo.com/static/loading.gif)
{
![](http://static.javashuo.com/static/loading.gif)
add { Events.AddHandler(rowDataBoundDataRowEventKey, value); }
![](http://static.javashuo.com/static/loading.gif)
remove { Events.RemoveHandler(rowDataBoundDataRowEventKey, value); }
![](http://static.javashuo.com/static/loading.gif)
}
/// <summary>
/// 觸發RowDataBoundDataRow事件
/// </summary>
/// <param name="e"></param>
protected
virtual
void OnRowDataBoundDataRow(GridViewRowEventArgs e)
![](http://static.javashuo.com/static/loading.gif)
{
![](http://static.javashuo.com/static/loading.gif)
RowDataBoundDataRowHandler handler = Events[rowDataBoundDataRowEventKey]
as RowDataBoundDataRowHandler;
if (handler !=
null)
![](http://static.javashuo.com/static/loading.gif)
{
![](http://static.javashuo.com/static/loading.gif)
handler(
this, e);
![](http://static.javashuo.com/static/loading.gif)
}
![](http://static.javashuo.com/static/loading.gif)
}
![](http://static.javashuo.com/static/loading.gif)
}
![](http://static.javashuo.com/static/loading.gif)
}