Hi everyone,
I'm doing my asp.net homework. What I have to do is to read data from a joined table and bind the retrieved data to an asp.net DataGrid.
I use Linq to SQL to join and read data from database. But when I bind my data to DataGrid, a column is missing .
I used a loop to check whether I can read the data from missing column or not, and actually, I could.
Here is my code and database :
https://www.dropbox.com/s/ga4zbp3f19dbngq/Asp.net.rar?dl=0
Here is my code to retrieve data from database, and the column Power is missing
decimal priceStart;
decimal priceStop;
#region Price
try
{
priceStart = decimal.Parse(txtPriceFrom.Text);
}
catch (Exception)
{
priceStart = 0;
}
try
{
priceStop = decimal.Parse(t ...
Go to the complete details ...