using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Web.UI.WebControls;
using System.Web.UI;
namespace YYControls

{
/// <summary>
/// SmartGridView類的事件部分
/// </summary>
public partial
class SmartGridView

{
private
static
readonly
object rowDataBoundDataRowEventKey =
new
object();
/// <summary>
/// RowDataBound事件中的DataControlRowType.DataRow部分
/// </summary>

[Category(
"擴展")]
public
event RowDataBoundDataRowHandler RowDataBoundDataRow

{

add { Events.AddHandler(rowDataBoundDataRowEventKey, value); }

remove { Events.RemoveHandler(rowDataBoundDataRowEventKey, value); }

}
/// <summary>
/// 觸發RowDataBoundDataRow事件
/// </summary>
/// <param name="e"></param>
protected
virtual
void OnRowDataBoundDataRow(GridViewRowEventArgs e)

{

RowDataBoundDataRowHandler handler = Events[rowDataBoundDataRowEventKey]
as RowDataBoundDataRowHandler;
if (handler !=
null)

{

handler(
this, e);

}

}

}

}