62,047
社区成员
发帖
与我相关
我的任务
分享
protected void GridView1_RowEdit(object sender, GridViewCommandEventArgs e)
{
try
{
//取得当前行第二列的值
string col2=e.row[e.rowindex].cell[1].text;
//同理取得其他列的值
//更新数据库,
//重新绑定数据元
}
catch
{
}
}
Convert.ToInt32(GridView1.SelectedRow.Cells[0].Text)-Convert.ToInt32(GridView1.SelectedRow.Cells[1].Text)