```
private void dgvOrder_CellClick(object sender, DataGridViewCellEventArgs e)
{
if (dgvOrder.SelectedRows.Count > 0)
{
int rowindex = e.RowIndex; //get current selected row
if (rowindex > -1)
{
selected_order_id = dgvOrder.Rows[rowindex].Cells[1].Value.ToString(); //which
RefreshGroupboxByOrderId();
}
}
}
```