views:

11

answers:

0

I know we cant use space in alias names when graming a LINQ 2 SQL expression.I am trying to bind the result to a datagrid in my WPF page.so now the column header are what i gave in the Alias.I just want to rename it to some thing else (Ex : From ItemName to Item Name )

The code which i have

Dim items = From p In objDB.ItemDetails Where p.TransferID = 'TR0022' Select ItemName = p.ItemName, p.InsertDate


    If items IsNot Nothing Then
        gridMMUTempTblItems.ItemsSource = items
    End If

Or is there any other way to rewrite the column header > Any thoughts ? Thanks in advane