470,833 Members | 1,479 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,833 developers. It's quick & easy.

Trouble with UpdateParameters and GridView


asp.net 2.0

I have a GridView which when updating I get this error:
DataBinding: 'System.Web.UI.WebControls.GridView' does not contain a
property with the name 'Type'.

Here is the UpdateParameter collection for this GridView:
<asp:ControlParameter ControlID="gvwPhoneType" Type="Int32"
PropertyName="Id" Name="Id" />
<asp:ControlParameter ControlID="gvwPhoneType" Type="Char"
PropertyName="Type" Name="Type" />
<asp:ControlParameter ControlID="gvwPhoneType" Type="string"
PropertyName="Desc" Name="Desc" />

This is the column definition:
<asp:BoundField HeaderText="Kode" DataField="Type" />
<asp:BoundField HeaderText="Beskrivelse" DataField="Desc" />

datasource is an ObjectDataSource

The point is that I'm trying to send in the values in the current row into
UpdateParameters and the UpdateMethod specified in UpdateMethod tag. But
somehow my code doesn't work

any suggestions?
Oct 21 '08 #1
0 999

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by jkayne | last post: by
4 posts views Thread by jens Jensen | last post: by
3 posts views Thread by Mike P | last post: by
reply views Thread by BenCoo | last post: by
7 posts views Thread by Justin | last post: by
1 post views Thread by Jeff | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.