(C#)DataGrid实现自定义分页,鼠标移至变色,删除确认、可编辑,可删除[12]

[入库:2006年2月23日] [更新:2007年3月24日]

本文简介:

            command.Parameters.Add("@productID",SqlDbType.Int);

            command.Parameters["@productID"].Value = dgProduct.DataKeys[e.Item.ItemIndex];

 

            command.ExecuteNonQuery();

            BindDataGrid();

        }

 

        //实现删除确认及颜色交替显示功能

        private void dgProduct_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)

        {

            if(e.Item.ItemType == ListItemType.Item ||e.Item.ItemType == ListItemType.AlternatingItem)

            {

本文关键:(C#)DataGrid实现自定义分页,鼠标移至变色,删除确认、可编辑,可删除
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top