Why edit is not possible in repeater??

Questions by tukuna   answers by tukuna

Showing Answers 1 - 10 of 10 Answers


  • Jul 27th, 2006

Repeater Control just reads the information from the database,so edit is not possible...

  Was this answer useful?  Yes


  • Sep 3rd, 2006

because repeater control is just only in read and forward ,so edit is not possibe in this.

  Was this answer useful?  Yes


  • Mar 22nd, 2007

because that property is not there for repeater control,its not being provided by microsoft.

  Was this answer useful?  Yes


  • Jul 10th, 2007

Because it is forward only

  Was this answer useful?  Yes

anil sahu

  • Aug 10th, 2007

Yes, it is right that the Repeater Control is only for read only but by hard coding we can also do the Editable in the repeater control.
There is no Item template in the Repeater control.

  Was this answer useful?  Yes

ashu fouzdar

  • Sep 20th, 2007

Yes, It is possible to enable editing capabilty in repeater. but it is not acceptable performance wise. one can use other controls , which are implementing IList.


  Was this answer useful?  Yes

The Repeater class is not derived from the WebControl class, like the DataGrid and DataList. Therefore, the Repeater lacks the stylistic properties common to both the DataGrid and DataList. What this boils down to is that if you want to format the data displayed in the Repeater, you must do so in the HTML markup.

We dont have SelectedItem and EditItem templates in Repeater. However, The Repeater's performance is slightly better than that of the DataList's, and is more noticeably better than that of the DataGrid's.

  Was this answer useful?  Yes


  • Jun 15th, 2010

Repeater control does not have default selecting and editing support. This control is just to read and display the information. This control has better performance. But if you want to enable the editing capability to this control then you have to add below code. Editing capability to repeater control:
1. Add the test box to display the data in Item template and set the name property.
2. Add one button control also in the same item template.
3. Use Button.Parent.findcontrol(“textboxname”) to get the control.
4. Use the value of that control to update the value in table.

  Was this answer useful?  Yes

Repeater itself a presentation control, not the data editing control.

Repeater still can support a multiple records updates which i have done to support some client requirements.

Basically its not the best code practices coz it requires much more coding & things to be taken care of but still we can do like following.

Use the repeater with hidden column of label/literal control visible false & hiding your primary key in that.Then show the textboxes/combo for the relevant data to be edited. & then bind it.

Once its filled up & posted back to server u just need to go through "repeateritems" via foreach loop & find them & store in database(may be via class & then method & then db layer).

But still it is not standard practice.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.


Related Answered Questions


Related Open Questions