|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
DataGrid LostFocus does not seem rightI have a datagrid tied to a data adapter. Everything works great,
EXCEPT, the LostFocus event only fires when I click on a specific cell within the DataGrid. If I set focus on another control, the LostFocus event does not fire. This is causing problems because I am checking for HasChanged on every CurrentCellChanged event. So if I change a cell, move to a new row, the update occurs just fine. However, if I change a cell, then set the focus to another control, the LostFocus event does not fire and I cannot check on whether the cell was updated or not. Hence, the last change made without moving to a new row is never saved. Any help would be greatly appreciated! Paul,
Cells are pushed down to the datasource using the endcurentedit, probably implementing that will do what you are looking for. A sample of that \\\ BindingContext(ds.Tables(0)).EndCurrentEdit() /// I hope this helps Cor Thanks Cor! I don't quite understand your code. However, I did
resolve this by using the Validating event. It fires when the DataGrid loses focus and has the correct value for the HasChanged. Thanks again!
Only 2 Days left to get REALbasic 5.5 for FREE!
Execption Handling disection Data Relation question Dependency Error: The dependency <dll> in project <project> cannot be coppied to the run directory b Re: THE GREATEST NEWS EVER! °º·._._.·º°`°º·._._.·º°`°º·._._.·º°`°º·._._.·º°`°º·._._.·º°`°º·._._.·º°` enum item from string Conversion from VB6 to VB.NET Architectural Question API calls in DotNet run file remotely Stepping into a referenced assembly |
|||||||||||||||||||||||