Solved

Saving before leaving Grid View row wont see the change

Posted on 2009-05-14
4
272 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
Comment Utility
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
Comment Utility
0
 
LVL 11

Expert Comment

by:srikanthreddyn143
Comment Utility
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
Comment Utility
I used the GV.refreshdata() to force refreshing
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Merging PDFs with VB.NET 10 30
Get String split 5 31
Create XML 5 30
Get Count in a variable with 5 digits always 1 8
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now