Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Refreshing DataGrid

Refreshing DataGrid

Scheduled Pinned Locked Moved Web Development
databasehelptutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Pradhip
    wrote on last edited by
    #1

    Hi: I have a DataGrid Page say Page1 that shows me the List of orders that have not been billed yet and also a column at the last which is a hyperlink to the page that will help me create the bill for the order. Now when i click the create-bill hyperlink the page works i can go ahead and create the bill.This is done on a seperate page that opens up say Page2. But what i alsowant is once the bill is made out and entered into the DB i want this pending bill entry to go out of the DataGrid.That is i want the datagrid on page1 to refresh itself when there is a button click event on the page2 that makes the bill. Any suggestions on how to do this.Thanks In Advance Regards Pradhip.S Why Need Parking lots in Bars when Drunken Driving is Prohibited

    L 1 Reply Last reply
    0
    • P Pradhip

      Hi: I have a DataGrid Page say Page1 that shows me the List of orders that have not been billed yet and also a column at the last which is a hyperlink to the page that will help me create the bill for the order. Now when i click the create-bill hyperlink the page works i can go ahead and create the bill.This is done on a seperate page that opens up say Page2. But what i alsowant is once the bill is made out and entered into the DB i want this pending bill entry to go out of the DataGrid.That is i want the datagrid on page1 to refresh itself when there is a button click event on the page2 that makes the bill. Any suggestions on how to do this.Thanks In Advance Regards Pradhip.S Why Need Parking lots in Bars when Drunken Driving is Prohibited

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      Also one for the ASP.NET forums ! Pradhip wrote: But what i alsowant is once the bill is made out and entered into the DB i want this pending bill entry to go out of the DataGrid.That is i want the datagrid on page1 to refresh itself when there is a button click event on the page2 that makes the bill I assume you are only filling the datagrid when !IsPostBack and using its viewstate for persistance. Now all you need to do is disable the ViewState of the datagrid and fill the datasource/databind on every pageload (not just when !IsPostBack). The query will be cached most likely so SQL overhead is minimal. Cheers :) "I dont have a life, I have a program."

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups