i have 1 table: Via1(via_id int, via_desc varchar(50), via_stato varchr(1))

i have this a datagrid:

 
 
 
 
 

 

  1 button on form:
 private void button1_Click(object sender, RoutedEventArgs e)
  {
  ctx.Load(ctx.GetVia1Query());

  var v = from t1 in ctx.via1s
  select new { via_desc1 = t1.via_desc1, via_id1=t1.via_id1 };

  dg1.ItemsSource =v.ToList(); 
  }


the result is wrong into datagrid because return name columnand data  (like on attach).


Why????? :((
thanks
V