我想在sqlDataAdapter.Update更新到数据库前对数据做一些处理,然后把处理后的数据保存到数据库,可是用下面方法无法实现,请高手执教有没有其他的方法?
private void sqlDataAdapter_RowUpdating(object sender,SqlRowUpdatingEventArgs e)
{
DataRow datarow=e.Row;
string cicode_text=datarow["capitalitem"].ToString();
string cicode=cicode_text.Substring(0,5)                   datarow["capitalitem"]=cicode;
    
}