Well, im a beginner and im having some problems with the code. On the display it shows System.Data.Objects.ObjectQuery 1[System.String]. Im stuck. I will be grateful for your help.
private void grdProdukti_CellValidating(object sender, DataGridViewCellValidatingEventArgs e)
{
if (e.ColumnIndex == 1)
{
int PID = int.Parse( e.FormattedValue.ToString()) ;
grdProdukti.CurrentRow.Cells["Produkt"].Value =
from tretmanProdukt in tretmanProdukti.Produkti
where tretmanProdukt.ProduktID == PID
select tretmanProdukt.Naziv;
}