Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private List<Credit> ListaZaznaczonychWnioskow = new List<Credit>();
- protected void Page_Load(object sender, EventArgs e)
- {
- grdMonity.DataSource = null;
- grdMonity.DataSource = DataManager.GetPenaltyReminderList().OrderBy(x => x.Balance).ToList();
- grdMonity.DataBind();
- foreach (GridViewRow monit in grdMonity.Rows)
- {
- if (monit.RowType == DataControlRowType.DataRow)
- {
- CheckBox chk = (CheckBox)monit.FindControl("chkZaznaczRekord");
- // jeśli zaznaczone
- if (chk.Checked && chk != null)
- {
- // dodaj wniosek do listy
- ListaZaznaczonychWnioskow.Add(DataManager.GetPenaltyReminder(Int32.Parse(monit.Cells[1].Text)));
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement