private bool chuyen_trang_thai_sang_gui_td() { bool v_flag = false; foreach (GridViewRow row in m_grv_don_hang_nhap.Rows) { if (row.RowType == DataControlRowType.DataRow) { System.Web.UI.WebControls.CheckBox chkRow = (row.Cells[0].FindControl("chkRow") as System.Web.UI.WebControls.CheckBox); if (chkRow.Checked) { US_GD_DON_DAT_HANG v_us = new US_GD_DON_DAT_HANG(); DS_GD_DON_DAT_HANG v_ds = new DS_GD_DON_DAT_HANG(); string ma_don_hang = row.Cells[6].Text; v_us.Chuyen_trang_thai_gui_cho_td(v_ds, ma_don_hang); v_flag = true; } } } load_data_to_grid_don_hang(); if (v_flag == false) { thong_bao("Chưa chọn đơn hàng để gửi", true); return false; } else return true; }