Hi all. Hoping someone can help me with this please...
My stored procedure is like this:
Could someone show me how to get a datagridview to populate with the results of this query..
if this was a normal query I would just drag the fields from the table on to my grid and then do a normal fill but of course this 'TotalPrice' column does not really exist.
How do I get this TotalPrice column to display with correct result?
Thanks
John
.NET 2.0, Visual Studio 2005, SQL Server 2005 Express
My stored procedure is like this:
Code:
Select Product, (Quantity * Price) As TotalPrice
From tblProducts
Could someone show me how to get a datagridview to populate with the results of this query..
if this was a normal query I would just drag the fields from the table on to my grid and then do a normal fill but of course this 'TotalPrice' column does not really exist.
How do I get this TotalPrice column to display with correct result?
Thanks
John
.NET 2.0, Visual Studio 2005, SQL Server 2005 Express