1.改变list中某个元素的值 public class tb_SensorRecordModel { public int ID { get; set; } public decimal Value1 { get; set; } } List<tb_SensorRecordModel> list = new List<tb_SensorRecordModel>(); list.Add(, Value1 = }); list.Add(, Value1 = }); list.Add(
ALV编辑行内容时,调用方法 check_changed_data返回变量 gf_valid = 'X'的话说明alv行有变化. 以下拿alv维护表程序部分代码做例: DATA: gr_alvgrid TYPE REF TO cl_gui_alv_grid ,"ALV对象 ) TYPE c. CALL METHOD gr_alvgrid->check_changed_data IMPORTING e_valid = gf_valid. "数据合法性标识,有非法数据则不进行操作 I