dataGrid with one row in Vb.net 2005

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tara500
    New Member
    • Jul 2007
    • 1

    dataGrid with one row in Vb.net 2005

    I have a datagrid with just one row.I have a button on one of grids cells. When I Click the butoon, and click on Save button (somewhere else in the form), the changes are lost. meanwhile, then datagrid is readonly. how can I prevent from this event?
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    Welcome to TSDN. Sounds like you are triggering two separate events that do two diiferent things. Which event are you wanting to prevent - the one from the original button?

    Comment

    • radcaesar
      Recognized Expert Contributor
      • Sep 2006
      • 759

      #3
      When you click that button, the page post back will occur. Since HTTP is stateless, it doesn't have any idea about previous page data, the data lost. U have to bind the values one again to retain those values.

      Comment

      Working...