Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 282
  • Last Modified:

Saving before leaving Grid View row wont see the change

when i change a value in a grid view control in row -say- 1 and I dont leave row to another and directly hit the save button, the value wont be seen as changed in the datasource behind the scenes , rather i need to click somewhere else. how to cure this?
0
TheSilverBullet
Asked:
TheSilverBullet
  • 2
1 Solution
 
DhaestCommented:
Are you sure that the event RowLeave is not triggered ?

Event Description        Fired when:
RowLeave                     A new cell is selected in a new row.
RowLeave                     The GridView control loses the focus.
 
0
 
DhaestCommented:
0
 
srikanthreddyn143Commented:
In the save button event , move the focus out of grid row before saving is started

Ex:

Public sub btn_click()

'move focus to other control

txtbox.focus()
0
 
TheSilverBulletAuthor Commented:
I used the GV.refreshdata() to force refreshing
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now