I have a list & lt;> that I bundle with a DataViewGrid using the binding source. Like this:
Private Zero BindGridView (DataGridView DGV, list & gt; KeyTextPair & gt; list; Func & lt; KeyTextPair, int, bool & gt; predicate) {BindingSource bs = new BindingSource (); Bs.DataSource = list.Where (point); Dgv.DataSource = BS; } I have a collection of such lists that the user can be chosen to display in DVG. However, in an effort to change a list, I get an error:
"The operation is not valid because it returns results in the reentrant call on the setcrackAdresscore function."
I have looked around for a few hours, but I still do not know why this is happening.
I would be very happy if any of you could help me.
Thank you.
In the second row you need to change the list from the archive:
< Code> bs.DataSource = list.Where (predicate) .toList ();
PS If it does not solve your problem, please post your predicted code
Cheers
Comments
Post a Comment