470,631 Members | 1,730 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,631 developers. It's quick & easy.

refreshing GridView

hey

asp.net 2.0

I have a GridView on my webpage. This GridView get its data from a
SqlDataSource.

On the same webpage I've added textbox and a button - so the user can add
records to the table which the GridView is based on...

After a new record is saved to the table, I want the GridView to refresh
itself (to show the newly added row). I tryed to use the
sqlDataSource.Select method, but it didn't refresh the GridView

any suggestions?
Aug 28 '06 #1
1 1511
myGrid.DataBind() should do.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
"Loading name..." <it_consultant1@NO_SPAM.hotmail.comwrote in message
news:em**************@TK2MSFTNGP04.phx.gbl...
hey

asp.net 2.0

I have a GridView on my webpage. This GridView get its data from a
SqlDataSource.

On the same webpage I've added textbox and a button - so the user can add
records to the table which the GridView is based on...

After a new record is saved to the table, I want the GridView to refresh
itself (to show the newly added row). I tryed to use the
sqlDataSource.Select method, but it didn't refresh the GridView

any suggestions?


Aug 28 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by joechipubik | last post: by
6 posts views Thread by =?Utf-8?B?V2F5RG93blVuZGVy?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.