Gridview casting with Linq

I currently do the following in VS 2005....

ProtectedSub GV_product_RowDataBind(ByVal senderAsObject,ByVal eAs System.Web.UI.WebControls.GridViewRowEventArgs)Handles GV_product.RowDataBound

Dim currowAs System.Data.DataRowView

currow = CType(e.Row.DataItem, System.Data.DataRowView)

. . . . . . .

Now with VS 2008 Beta 2, I'm now trying do the same thing with Linq. I'm now binding the Gridview with the Linq class. But I get casting errors with the above code. (Unable to cast object of type 'Product' . . . )

What do I need to cast this to so this will work?

Thanks

[1639 byte] By [sr123] at [2008-1-10]

Visual Studio Orcas

Site Classified