Web上面 DataGrid 编辑问题
private void gridWorkTime_UpdateCommand(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
TextBox t = (TextBox)e.Item.Cells[3].Controls[0]; //上班时间
String strTmp = t.Text;
t = (TextBox)e.Item.Cells[4].Controls[0]; //下班时间
strTmp = t.Text;
}
利用DataGrid提供的编辑功能,在进行数据编辑时,一直得不到编辑的值,得到的内容都是编辑之前显示的内容,请问需要做什么特别的设置吗??
DataGrid绑定的数据为自己手动添加到DataSet中Table中的数据。