protected void Grid1_RowClick(object sender, ExtAspNet.GridRowClickEventArgs e) { //Alert.ShowInTop(String.Format("你点击了第 {0} 行(单击)", e.RowIndex + 1)); bool checkedState = false; if (new List <int>(Grid1.SelectedRowIndexArray).Contains(e.RowIndex)) { checkedState = true; } CheckBoxField field1 = (CheckBoxField)Grid1.FindColumn("CheckBoxField1"); CheckBoxField field2 = (CheckBoxField)Grid1.FindColumn("CheckBoxField2"); CheckBoxField field3 = (CheckBoxField)Grid1.FindColumn("CheckBoxField3"); // Grid1.Rows[e.RowIndex].States[field1.ColumnIndex] = true; field1.SetCheckedState(e.RowIndex, checkedState); field2.SetCheckedState(e.RowIndex, checkedState); field3.SetCheckedState(e.RowIndex, checkedState); }
protected void Grid2_RowClick(object sender, ExtAspNet.GridRowClickEventArgs e) { BindGrid1(); }
protected void Grid1_RowClick(object sender, ExtAspNet.GridRowClickEventArgs e) { Alert.ShowInTop(String.Format("你点击了第 {0} 行(双击)", e.RowIndex + 1)); }