468,315 Members | 1,429 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

Trouble with UpdateParameters and GridView

hi

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:
<UpdateParameters>
<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" />
</UpdateParameters>

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

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 945

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
By using this site, you agree to our Privacy Policy and Terms of Use.