private void focus_new_row_created(decimal ip_dc_id_dm_dv) { int v_row_index = 0; decimal v_id_qd_moi_lap = 0; US_DM_PHU_CAP v_us = new US_DM_PHU_CAP(); DS_DM_PHU_CAP v_ds = new DS_DM_PHU_CAP(); v_id_qd_moi_lap = ip_dc_id_dm_dv; v_us.FillDataset(v_ds); for (v_row_index = 0; v_row_index < v_ds.Tables[0].Rows.Count; v_row_index++) { var v_id_gd_qd = CIPConvert.ToDecimal(m_grv_dm_phu_cap.GetDataRow(v_row_index)["ID"].ToString()); if (v_id_gd_qd == v_id_qd_moi_lap) { break; } } m_grv_dm_phu_cap.FocusedRowHandle = v_row_index; }
private DS_DM_PHU_CAP load_data_2_ds_dm_phu_cap() { US_DM_PHU_CAP v_us = new US_DM_PHU_CAP(); DS_DM_PHU_CAP v_ds = new DS_DM_PHU_CAP(); v_us.FillDataset(v_ds); return v_ds; }