aerobar2 Posted August 9, 2004 Posted August 9, 2004 My datagrid saves all cells that were editted accept the last cell. This happens in any cell if you do not leave the cell and go straight to the "UPDATE" button. I found Microsoft KB aricle 833032 that references this problem, but the code is written in C# and I can't seem to get it to work in VB.NET. DataGridColumnStyle cStyle = dataGrid2.TableStyles[dvOrderDetails.Table.TableName].GridColumnStyles[dataGrid2.CurrentCell.ColumnNumber]; dataGrid2.EndEdit(cStyle, dataGrid2.CurrentCell.RowNumber, false); dvOrderDetails.Table.Rows[dataGrid2.CurrentCell.RowNumber].EndEdit(); Can anyone help convert this to VB? Quote
Moderators Robby Posted August 10, 2004 Moderators Posted August 10, 2004 This should do it.... dim cStyle as DataGridColumnStyle cStyle = dataGrid2.TableStyles(dvOrderDetails.Table.TableName).GridColumnStyles(dataGrid2.CurrentCell.ColumnNumber) dataGrid2.EndEdit(cStyle, dataGrid2.CurrentCell.RowNumber, false) dvOrderDetails.Table.Rows(dataGrid2.CurrentCell.RowNumber).EndEdit() Quote Visit...Bassic Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.