I have a WinForm application that is created in Visual Studio 11 Developer Preview. It used Model Binding to bind data to a GridView. I upgraded my environment to Visual Studio 11 Beta and my application no longer works. Does anyone know of any changes to the way this is done.
This is the error: "'Item' is not declared. It may be inaccessible due to its protection level." I could find "Items" but not "Item"
Thank you
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
DataKeyNames="organizationId,organizationGuid"
ModelType="Organization"
SelectMethod="BindGrid" MultipleActiveResultSets="True"
EmptyDataText="There are no data records to display.">
<Columns>
<asp:TemplateField HeaderText="organizationGuid" SortExpression="organizationGuid" Visible="False">
<ItemTemplate>
<asp:Label ID="organizationGuidLabel1" runat="server" Text='<%# Item.organizationGuid%>' />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
>It used Model Binding to bind data to a GridView.
You have winforms app and you are using GridView? An ASP.NET GridView? I have not checked VS11 yet but have Winforms changed so much?