1
I have an Oracle database and need to popular a gridView. I’m doing with var
, because I do not know the type that will be returned. It has to make a list in var
, example list<var>
, and then play in the grid?
gridview1.datasource = lista var
grindview1.dataBird():
foreach (var nota in info)
{
var prod = bd.PRODUTOes.Where(p => p.NOTA_FISCAL.Any(n => n.ID == nota.ID));
}
Could you be more clear on your question? You have a grid on the screen that can be a list of multiple objects and needs it to be dynamic, that’s it?
– Ayrton Giffoni
How do you not know the type to be returned? It will always be a
IEnumerable<T>
, beingT
the type ofPRODUTOes
.– vinibrsl