Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > Refreshing datagrid

Reply
Thread Tools

Refreshing datagrid

 
 
Ruby
Guest
Posts: n/a
 
      01-14-2004
Hi all...
I have an asp page with a datagrid, and a imagebutton to add a new row.
every time I click that new button, a new page appear and user can entry
data, save and close that page.
the problem is :
I want my datagrid reflecting the changes of my add new row, so every time I
save and close that add new record page,
automatically it add a new row in my datagrid

thank

ruby


 
Reply With Quote
 
 
 
 
Michael
Guest
Posts: n/a
 
      01-14-2004
Just call the .DataBind() method of the datagrid in the page you want to
display the new data. Your datasource will have to be updated with the new
info though. If your datasource is a dataset, this should be pretty easy
and not involve going back to the database and requerying.

"Ruby" <(E-Mail Removed)> wrote in message
news:u2hl%(E-Mail Removed)...
> Hi all...
> I have an asp page with a datagrid, and a imagebutton to add a new row.
> every time I click that new button, a new page appear and user can entry
> data, save and close that page.
> the problem is :
> I want my datagrid reflecting the changes of my add new row, so every time

I
> save and close that add new record page,
> automatically it add a new row in my datagrid
>
> thank
>
> ruby
>
>



 
Reply With Quote
 
 
 
 
QUASAR
Guest
Posts: n/a
 
      01-15-2004
Why you don't use the same page to add the record directly to the datagrid?
If this can be ok for you the ASP.NET WebMatrix has a good example for this
in the new file template named "editable
data grid" that come with the program...
There also is another my post of today where I have also attached the
file...

Byez,
Quasar


"Ruby" <(E-Mail Removed)> ha scritto nel messaggio
news:u2hl#(E-Mail Removed)...
> Hi all...
> I have an asp page with a datagrid, and a imagebutton to add a new row.
> every time I click that new button, a new page appear and user can entry
> data, save and close that page.
> the problem is :
> I want my datagrid reflecting the changes of my add new row, so every time

I
> save and close that add new record page,
> automatically it add a new row in my datagrid
>
> thank
>
> ruby
>
>



 
Reply With Quote
 
Ruby Yanto
Guest
Posts: n/a
 
      01-15-2004
Thank for advice, I also figured out that method, but the problem is, if
I want to see records that i've entered at the same time i must open
another browser to search for a spesific record

Thank
Ruby


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
Ruby Yanto
Guest
Posts: n/a
 
      01-15-2004
In What event should I put databind() method, since I don't know exactly
what event will trigger when I close that add new record page

thank

Ruby



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Self-refreshing and non-self-refreshing controls Harlan Messinger ASP .Net 1 08-04-2006 01:13 PM
Self-refreshing and non-self-refreshing controls Harlan Messinger ASP .Net Web Controls 0 08-03-2006 12:29 PM
Refreshing the DataGrid in a webform in the IFrame Rod ASP .Net 4 08-18-2004 09:05 PM
Refreshing a DataGrid that is bound to a Collection of Business Objects =?Utf-8?B?S2VsbHkgUw==?= ASP .Net 1 05-19-2004 08:21 PM
Refreshing DataGrid in page_load A.M ASP .Net 7 11-04-2003 02:27 PM



Advertisments