How can i make a datatype return IEnumerable<datatype>
if it does not have AsEnumerable()
method. For example:
FarPointSpread1.ActiveSheet.Rows[e.Row]
does not contain AsEnumerable()
so i cannot do this
FarPointSpread1.ActiveSheet.Rows[e.Row].AsEnumerable()
e.Row
is the current row in the spread's activesheet and i am expecting to be able to do something like this:
IEnumerable<FarPoint.Win.Spread.Row> = FarPointSpread1.ActiveSheet.Rows[e.Row].AsEnumerable();
I want to iterate over all fields in a row and set values on runtime - which will come from database. Is there a way i can achieve this? If there is some workaround please let me know with some examples. Even if the example cannot be shown using Farpoint - any other kind of example is welcome. Thanks in advance.