bsp; UpdateCommand += new DataGridCommandEventHandler(OnUpdateCommand);
DeleteCommand += new DataGridCommandEventHandler(OnDeleteCommand);
}
// PROPERTY: AllowFullEditing
// Enable full editing
public bool AllowFullEditing;
// PROPERTY: AddNewRow
// if true must add an empty row at the bottom of the data source
public bool AddNewRow;
// INTERNAL PROPERTY: RejectChanges
// if true must reject changes on the last row of the data source
protected bool RejectChanges;
// INTERNAL PROPERTY: MustInsertRow
// if true must INSERT instead of UPDATE and there's a pending change
protected bool MustInsertRow
{
get {return Convert.ToBoolean(ViewState["MustInsertRow"]);}
set {ViewState["MustInsertRow"] = value;}
}
// PROPERTY: DataSource (override)
public override object DataSource
{
get {return base.DataSource;}
set
{
DeleteCommand += new DataGridCommandEventHandler(OnDeleteCommand);
}
// PROPERTY: AllowFullEditing
// Enable full editing
public bool AllowFullEditing;
// PROPERTY: AddNewRow
// if true must add an empty row at the bottom of the data source
public bool AddNewRow;
// INTERNAL PROPERTY: RejectChanges
// if true must reject changes on the last row of the data source
protected bool RejectChanges;
// INTERNAL PROPERTY: MustInsertRow
// if true must INSERT instead of UPDATE and there's a pending change
protected bool MustInsertRow
{
get {return Convert.ToBoolean(ViewState["MustInsertRow"]);}
set {ViewState["MustInsertRow"] = value;}
}
// PROPERTY: DataSource (override)
public override object DataSource
{
get {return base.DataSource;}
set
{
| 对此文章发表了评论 |

