Hi, when i change something in a cell, the rowupdated event will be fire.but i have always nothing in the row object.
Public Sub WebDataGrid1_RowUpdated(ByVal sender As Object, ByVal e As Infragistics.Web.UI.GridControls.RowUpdatedEventArgs
)
'Dim id As IDPair = e.RowID
'Dim row As GridRecord = WebDataGrid2.Rows.FromIDPair(id)
'' //update the row in the databas
Dim row As GridRecord = Me
.WebDataGrid2.Rows.FromIDPair(e.RowID)
End
Sub
i attached an image of the debugger. you can see i got an error in the e.rowid, but in the value i have the correct id from the database. (i bind a dataset to the webdatagrid)
Hi,
I've tried to reproduce your case with simply binding WebDataGrid to SQLDataSource with Northwind DB, get top 10 records of three columns from products table. And when I do a post back, after editing a value in cell, the RowUpdated event is fired and I get the same object as you, but it's not empty. Here is a screen shot:
Is that the case you are working on, or I misunderstood something? You can check the markup just to be sure if everything is set properly.
Thanks,
Hi Paskalev, i don't now exact why it now works. maybe i always build up the grid (also in the load_event)and in the rowupdateevent with
Dim row As GridRecord = Me.WebDataGrid2.Rows.FromIDPair(e.RowID)oColumn = Get_Current_Grid_Column("lfd__nr_")
If Not IsNothing(oColumn) Then
nRSID =
Convert.ToInt64(db1.GetDBValue(row.Items.GetValue(oColumn.Index), "Number"))