⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 26.9.txt

📁 《Microsoft Visual C# .NET 2003开发技巧大全》源代码
💻 TXT
字号:
Listing 26.9 Responding to ObjectList Command Events
private void ObjectList1_ItemCommand(object sender,
System.Web.UI.MobileControls.ObjectListCommandEventArgs e)
{
if( e.CommandName == “Delete” )
{
// get the current dataset
sqlDataAdapter1.Fill( productsDS1, “Products”);
// find the correct row to delete
ProductsDS.ProductsRow row =
productsDS1.Products.FindByProductID( Int32.Parse(e.ListItem[0]) );
// delete the row
productsDS1.Products.RemoveProductsRow(row);
// update the database and databind
sqlDataAdapter1.Update( productsDS1, “Products”);
DataBind();
}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -