Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: ASP
Posted by: Mario Lopes
Added: Sep 7, 2018 5:32 PM
Views: 54
Necessitamos de uma coluna ativo ou não
  1. protected void GridView1_RowUpdated(object sender, GridViewUpdatedEventArgs e)
  2.     {
  3.      
  4.         CheckBox novo_ativo = GridView1.Rows[GridView1.EditIndex].FindControl("CheckBox1") as CheckBox;
  5.         HiddenField antigo_ativo = GridView1.Rows[GridView1.EditIndex].FindControl("hid_OldName") as HiddenField;
  6.      
  7.         if (novo_ativo.Checked.ToString() != antigo_ativo.Value) //estado mudou
  8.         {
  9.             //atualiza movimentos
  10.            
  11.  
  12.         }