or
| protected override void SetupFilterControls(TableCell cell) |
| { |
| base.SetupFilterControls(cell); |
| cell.Controls.RemoveAt(0); |
| DropDownList ddl = new DropDownList(); |
| ddl.AutoPostBack = true; |
| ddl.ID = "fltr" + DataField; |
| ddl.SelectedIndexChanged += new EventHandler(junk_SelectedIndexChanged); |
| cell.Controls.AddAt(0, ddl); |
| cell.Controls.RemoveAt(1); |
| ddl.DataSource = Owner.DataSource; |
| ddl.DataTextField = DataField; |
| ddl.DataValueField = DataField; |
| ddl.DataBind(); |
| } |

| <asp:LinkButton ID="btnEditSelected" runat="server" CommandName="EditSelected" Visible='<%# RadGrid1.EditIndexes.Count = 0 %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/Edit.gif" />Edit selected</asp:LinkButton> |

I have a grid within my application that allows only one row to edited at a time. When there are two (or more) concurrent users of the application I have come across this scenario;
// - User A selects a row to edit
// - User B adds a new row above the one currently being edited (in a different instance of the application)
// - User A causes the grid to postback but remain in edit mode. For example, incomplete mandatory fields.
// - User A is now presented with a different row to edit because the index value on the original row has increased by 1 but the EditIndexes value hasn't
Please can someone let me know if this the expected outcome or if I am missing something obvious?
