Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Saving before leaving Grid View row wont see the change

Posted on 2009-05-14
4
275 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

809 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