Boundfield not returning count from LINQ query

JoydayGob

New Member
I have a grouped LINQ query with a count summary line that I am binding to a gridview but the count field in the gridview just shows 'System.Data.DataRow[]'What am I doing wrong here? Thanks!aspx:\[code\] <asp:BoundField DataField="Service_Name" HeaderText="Impacted services"/> <asp:BoundField DataField="Fieldname" HeaderText="Count"/>\[/code\]vb code:\[code\] Dim Services = From Lines In dtMain _ Where Lines.Field(Of String)("ULTIMATE_PARENT_NAME") = lstUPs.SelectedItem.ToString _ Group By Parent_Name = Lines.Field(Of String)("ULTIMATE_PARENT_NAME"), _ Service_Name = Lines.Field(Of String)("THIRD_PARTY_SERVICE_CLEAN") _ Into Fieldname = Group, Count() grdOuterGridView.DataSource = Services grdOuterGridView.DataBind()\[/code\]
 
Back
Top