Event handling

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • neelmukhopadhya
    New Member
    • Dec 2010
    • 23

    Event handling

    Hi all i need a help.i am working on a project. where i have a form which displays the list of items in a grid. and there is a button named "add" below the form. when i click on add button , a new modal form is opened to enter the item details. everything working fine for me.
    But i nned to reload the grid whenever a item is added .
    How can i do this.

    This is a winform application. i am using c#.net 2008.

    please help me.
  • Subin Ninan
    New Member
    • Sep 2010
    • 91

    #2
    I assume here that you are adding items in database. Create a function which will clear the gridview items, fetch items from database to gridview. Call this function after a new item is inserted or when you need to refresh grid items.

    Comment

    • neelmukhopadhya
      New Member
      • Dec 2010
      • 23

      #3
      yes, i am adding item to the database. but from another modal form. over the form which contains the grid. Now i want to update the grid as soon as i insert the value from the addition form .
      pls help.

      Comment

      Working...