"An error has occurred because a control with id 'dgCompGrid$ctl00$ctl04$EditButton' could not be located or a different control is assigned to the same ID after postback. If the ID is not assigned, explicitly set the ID property of controls that raise postback events to avoid this error."
I have changed the grids viewstate = True but still get the same error?
.DataSource = Nothing
.EnableViewState = True
.DataSource = ippService.Select(ID)
Dim oEditColumn As New GridEditCommandColumn
.ButtonType = GridButtonColumnType.ImageButton
.UniqueName = "EditColumn"
.CancelImageUrl = "~/Images/small/x_out.gif"
.EditImageUrl = "~/Images/small/pencil.gif"
.UpdateImageUrl = "~/Images/small/save_blue.gif"
.ItemStyle.Wrap = False
If I comment out the buttontype were the column shows EDIT instead of an image button it have no problems?
I use the Needdatasource to call a sub that loads the data.
Thanks in Advance.