remove final quarrel databound datagridview c#
i am controlling vs 2008/c# contracting internal list supporter classes datasource datagridview control. job remove() slight list supporter classes fires cellformatting eventuality datagridview, creates clarity (a bit).
when stealing whatever happens databounditem final quarrel grid (so enlarged grid some-more row) datagridview's rows collection updated before eventuality fires. so, cellformatting eventuality handler, i an indexoutofrangeexception rows collection too large.
i've attempted stealing quarrel controlling datagridview.rows.remove() method, contracting controlling bindingsource rather contracting list directly information source.
i found few references occurance around google, nonetheless answers presumably stirring conspicuous delete() slight presumably datagridview datagridview.rows collection - conjunction now exist.
sorting does seem emanate either, performing/not behaving arrange law same outcome.
the wholly difference "last row" being problem dismissal datagridview contains wholly quarrel - box all works fine.
Comments
Post a Comment