Skip to content

Commit

Permalink
remove select row export report subject
Browse files Browse the repository at this point in the history
  • Loading branch information
MiMi-Yup committed Jun 9, 2022
1 parent a722a25 commit d8cc130
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@ void GetValue()

CurrencyManager cm = (CurrencyManager)BindingContext[DataTable.DataSource];
cm.SuspendBinding();
for (int index = 0; index < DataTable.SelectedRows.Count; index++)
/*for (int index = 0; index < DataTable.SelectedRows.Count; index++)
{
selectRows.Add(DataTable.SelectedRows[index].DataBoundItem as GRIDVIEW4REPORT);
}
}*/

if (selectRows.Count == 0)
{
Expand All @@ -160,6 +160,7 @@ void GetValue()
selectRows.Add(DataTable.Rows[index].DataBoundItem as GRIDVIEW4REPORT);
}
}

cm.ResumeBinding();
}

Expand Down Expand Up @@ -311,13 +312,13 @@ private void UpdateReportSubject_CurrentChanged()
this.Invoke(new System.Action(() =>
{
dataGridViewBindingSource.DataSource = data.ToList();
DataTable.ClearSelection();
//DataTable.ClearSelection();
}));
}
else
{
dataGridViewBindingSource.DataSource = data.ToList();
DataTable.ClearSelection();
//DataTable.ClearSelection();
}
}

Expand Down

0 comments on commit d8cc130

Please sign in to comment.