在winform中使用checbox很多.上次那个项目里就用到了,写了一个不太好用,后来翻阅了一下微软提供的样码,我觉得有必要给大家分享一下. // This event handler manually raises the CellValueChanged event // by calling the CommitEdit method. public void DataGridView1_CurrentCellDirtyStateChanged(object sender, EventA
1.判断GridPanel中是否选中了某行 if (!GridPanel1.hasSelection()) { Ext.Msg.alert("提示", "请选择记录!"); return; } 2.获取选中行的数据 var record = GridPanel1.selModel.getSelected(); var ID = record.data.ID; 注意:ID为GridPanel1的Store的列名. 3.获取GridPanel中所有的数据 var dat