when I paste from Excel into the WebGrid, whether I am replacing an existing row or adding a new row, the grid does not know a change was made to it on page post-back...
I'm firing these events via the grid:Protected Sub PerformanceGrid_UpdateGrid(ByVal sender As Object, ByVal e As Infragistics.WebUI.UltraWebGrid.UpdateEventArgs) Handles PerformanceGrid.UpdateGridProtected Sub PerformanceGrid_AddRowBatch(ByVal sender As Object, ByVal e As Infragistics.WebUI.UltraWebGrid.RowEventArgs) Handles PerformanceGrid.AddRowBatchProtected Sub PerformanceGrid_UpdateRowBatch(ByVal sender As Object, ByVal e As Infragistics.WebUI.UltraWebGrid.RowEventArgs) Handles PerformanceGrid.UpdateRowBatch
none of these are being fired
I'm also checking for any changes this way on page postback:Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.ClickFor Each GridRow As UltraGridRow In PerformanceGrid.RowsIf GridRow.DataChanged = DataChanged.Modified Or GridRow.DataChanged = DataChanged.Added....ThenEnd IfNextEnd Sub
and the newly added and/or updated row via the paste is skipped right over.
Is there a way I can manually set these flags when a paste occurrs into my grid? I could catch the event on the client-side with AfterClipBoardOperation and then set it there, so on postback, my grid knows what was added or changed...
If I can't do this manually, then what is the value in having a grid that can have data pasted into it, only to not be able to act on that data when a grid is posted back?
Thanks,Mike