(
//單擊
public void STmyGrid_delete(object source
{
//創建刪除指定ID的sql語句
string STstrsql =
//創建SqlCommand對象
SqlCommand STcmd = new SqlCommand(STstrsql
//添加參數
STcmd
STcmd
STcmd
try
{
//執行sql語句
STcmd
}
catch(SqlException)
{
}
STcmd
BindGrid();
}
[
From:http://tw.wingwit.com/Article/program/net/201311/15193.html