asp.net中GridView编辑,更新,合计用法示例

  

  OnRowCreated="GridView1_RowCreated" AutoGenerateColumns="False" Width="99%" CssClass="gridview"

  EnableModelValidation="True" OnRowCancelingEdit="tabgv_RowCancelingEdit" OnRowEditing="tabgv_RowEditing"

  OnRowUpdating="tabgv_RowUpdating">

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  Style="text-align: right" Width="100px"

  onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false">

  

  

  

  

  

  

  

  

  

  

  

  

  

  Style="text-align: right" Width="100px"

  onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false">

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  Text="更新">

  

  Text="取消">

  

  

  

  Text='<%#Eval("childFlag").ToString()== "0" ? "锁定":"编辑"%>'>