Binding Listview itemcommand

Peter Otmar asked on June 17, 2014 16:56


I have a simple webpart with a Listview where I can edit insert or update records. As a standard usercontrol, this works fine on non Kentico application. I bind the data in page_load event not on postback (initial load). And then rebind as needed.

Someone suggested to put the usercontrol into kentico usercontrol. This kind of works except I have to bind data on every postback and then itemcommand does't fire properly in edit mode (Update).

Does anyone have a solution for this problem? I have read the forum where people had the same issue but can't seem to find viable solution. I'm guessing this would be very common scenario.

Regards, Peter

   Please, sign in to be able to submit a new answer.