Unfortunately, I do not have ASP.NET Membership configured on my system right now so cannot test your code. However, one thing does seem apparent : You bind your GridView to a manually created Dataset but in the RowDeleting event, you do not make any modifications to the Dataset itself. You just delete the user from the database. This is probably the reason why your updated data only shows up when you refresh the page (i.e., when Page_Load is called the next time).
Ideally you should have the databinding code in a separate function that gets called after each modification (such as in the RowDeleting eventhandler) as well as on Page_Load. On Apr 12, 1:50 am, "Claudio M. E. Bastos Iorio" <[email protected]> wrote: > CEREBRUS, many thanks for your response. > > Yes, I'm actually editing/deleting my data. But it doesn't show in gridview > control, until I manually refresh the page. > > Here is some code (I'm using a SQLite membership/role/profile provider, and > I'm updating/removing users here): > > code snipped for brevity.
