Hello , I have seen several reference in your documentation about updateDBrow, but nowwhere I can find an example on how to use it.What are the benefit of updateDBrow?
Thanks
Hi,
The UpdateDBRow method is used to update the DataSource of a Grid. It only works when the DataSource is set by using the DataSourceID property of the Grid. Here is a link which can give you more idea:
http://help.infragistics.com/Help/NetAdvantage/NET/2008.3/CLR2.0/html/Infragistics2.WebUI.UltraWebGrid.v8.3~Infragistics.WebUI.UltraWebGrid.UltraWebGrid~UpdateDBRow.html
This can be used as follows:
{
}
Hope this helps.
The updateDBRow method updates the data source of the Grid. It only works when the DataSource bound to the Grid is defined through DataSourceID property. Here is a link which provides more details on this method:
http://help.infragistics.com/Help/NetAdvantage/NET/2008.3/CLR2.0/html/Infragistics2.WebUI.UltraWebGrid.v8.3~Infragistics.WebUI.UltraWebGrid.UltraWebGrid~UpdateDBRow(UltraGridRow).html
I am not sure if this method is commonly used to update the database. So I ran a quick test and included this method in UpdateRow event as follows:
It worked fine. I defined the SQLDataSource in design view and assigned it's ID to DataSourceID of the Grid.
Here is another link showing how to handle the events of the Grid and update data with a data set.
http://help.infragistics.com/Help/NetAdvantage/NET/2008.3/CLR2.0/html/WebGrid_Updating_Data_with_a_Data_Set.html
The documentation and example can help you more.