Great. Now I see where is my problem. Cerebrus, you are right.
Btw, the SQLite membership/role/profile provider was very useful to me, it
does not require MSSQL server, and provides all the features of ASP.NET
membership. Is the same implementation used on gallery server pro
http://www.galleryserverpro.com/


_________________________________
Claudio M. E. Bastos Iorio
http://www.blumersolutions.com


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Cerebrus
Sent: Sunday, April 12, 2009 5:51 AM
To: DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web
Services,.NET Remoting
Subject: [DotNetDevelopment] Re: gridview.databind doesn't work


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.

Reply via email to