Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

problem binding data with gridview

1 view
Skip to first unread message

Seema

unread,
May 14, 2009, 10:43:01 AM5/14/09
to
I have the following coding but when I build it it gives me following error


public static DataFeedEntities2 entities = new DataFeedEntities2();
var type = (from p in entities.Address select p);
this.GridView2.DataSource = type;
this.GridView2.DataBind;

ERROR:--> Only assignment, call, increment, decrement, and new object
expressions can be used as a statement

Alexey Smirnov

unread,
May 15, 2009, 9:20:44 AM5/15/09
to

this.GridView2.DataBind()

0 new messages