I have a gridview control with one column. In that column are an
ItemTemplate and EditItemTemplate. The gridview is bound to an
ObjectDataSource using the DataSourceID property. I am not doing anything
special in the databinding event and the templates use basic framework
controls with either <%# Eval("property") %> or <%# Bind("property") %> in
the EditItemTemplate.
When there is more than one item bound to the gridview, any row other than
first one will not fire the RowCommand event unless I click each command
button twice. Upon the second click, the event will fire, but not the first.
When in edit mode (after 2 clicks on a button with CommandName="Edit") in a
row other than the first, when I click a button with CommandName="Update",
the page posts back, no events are fired and then all the fields in the edit
control are blank.
Any help with this would be greatly appreciated.
Regards,
Chad Scharf
JIGNESH - 12 Oct 2007 09:11 GMT
Hi Chad Scharf,
Could you pls check and let me know if code written in Page_load event is
within "IF NOT Page.ISPostBack" block.
If not add it and let me know the result. mostly it should solve.
Regards
JIGNESH
> I have a gridview control with one column. In that column are an
> ItemTemplate and EditItemTemplate. The gridview is bound to an
[quoted text clipped - 15 lines]
> Regards,
> Chad Scharf
Chad Scharf - 15 Oct 2007 16:56 GMT
Any ideas out there?
>I have a gridview control with one column. In that column are an
>ItemTemplate and EditItemTemplate. The gridview is bound to an
[quoted text clipped - 15 lines]
> Regards,
> Chad Scharf
Chad Scharf - 15 Oct 2007 17:20 GMT
OK, just an update. I've narrowed the problem down to the Infragistics Web
Data Input controls in the <ItemTemplate>. When I comment them out,
everything works as expected. I guess I need to move this thread to
Infragistics support forums, unless anyone here may know what's going on.
Thanks,
Chad
> Any ideas out there?
>
[quoted text clipped - 17 lines]
>> Regards,
>> Chad Scharf