Here is the code I have so far: How did you use a repeater instead of a Details View, that would be strange because each now is the next field instead of a row like the Grid View.Repeaters give you full control but typing the HTML yourself but I'd like to see if I can use the features of the controls to do what I need to do before moving to the repeater.Jono One thing i didn't mention is that I didn't set the Data Source on the Details View in the aspx page.It is set in the Page_Load because it is retrieved from from data objects (NHibernate).This property should be assigned with the Primary Key of the database table. We cannot retrieve the datakey values as the data is not yet bound to the details View control.After doing this, we can retrieve the Data Key value in the following ways. So, we call Databind() method in the Page Index Changed event handler and then retrieve the datakey value as shown in the code given below.
So I might hit update and get the insert mode, or vice versa.
Because then I have to code those extra features that the Grid View and Details View have that the repeater does not.
If I work it out by myself then I'll come back here and let you know so you know what to do in the future if you decide to use a Details View for something.
If you click Edit, you will have to click it twice to get into edit mode, then twice to cancel out.
I just noticed after the first time it only takes 1 click to get into edit but still 2 clicks to get out of edit mode.