Solved

Saving before leaving Grid View row wont see the change

Posted on 2009-05-14
4
274 Views
Last Modified: 2012-05-07
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
Comment
Question by:TheSilverBullet
  • 2
4 Comments
 
LVL 53

Expert Comment

by:Dhaest
ID: 24383567
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
 
LVL 53

Expert Comment

by:Dhaest
ID: 24383568
0
 
LVL 11

Expert Comment

by:srikanthreddyn143
ID: 24385009
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
 

Accepted Solution

by:
TheSilverBullet earned 0 total points
ID: 24857515
I used the GV.refreshdata() to force refreshing
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question