LíneaFactura
- idLineFactura
- amount
- ProductID
product
- ProductID
- name
- reference
- unit price
-
idCategory
SELECT L.cantidad, P.nombre , P.precioUnitario, (L.cantidad * P.precioUnitario) as precioSubTotal FROM lineaFacturaTMP L , producto P WHERE p.idProducto = L.idProducto
The problem I have is that I am trying to list cantidad , nombre del producto , precio , subtotal
in a gridView
, although I put precioSubTotal
in the dataField
I get an error:
{"No field or property 'priceSubTotal' was found in the selected data source. "},
I execute the query in the sqlManagementStudio
and if it brings me the data, but the gridView
throws me the error