Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
30
UltraWebGrid and using UpdateDBRow
posted

I seem to have run into a glitch or even a bug but I am not sure so I thought I would try here first to see if anyone else has come across this. I am using a WebGrid in an online application and it works great. I have a button on the webform so that the user can save their details as they go along. I am using UpdateDBRow to save the changes within my code behind on the button action. This works fine the first time with no problems. But if the user wants to click it again it doesn't work unless they click on another record on the grid and then go back and click the origional record that they wants to make additional changes to. One thing that I have noticed is that after using UpdateDBRow the ActiveRow is set to null, which seems strange to me as the user hasn't unselected the Grid.

 Here is my code:

                  Infragistics.WebUI.UltraWebGrid.UltraGridRow rwTemp = uwgPages.DisplayLayout.ActiveRow;

                  rwTemp.Cells[uwgPages.Columns.IndexOf("DESCRIPTION")].Value = wheDescription.TextXhtml;
                  rwTemp.Cells[uwgPages.Columns.IndexOf("UPDATED_DATE")].Value = DateTime.Now;
                  rwTemp.Cells[uwgPages.Columns.IndexOf("NAME")].Value = this.wteName.Text;

                  uwgPages.UpdateDBRow(uwgPages.DisplayLayout.ActiveRow);
                  rwTemp.Activate();
 

Thanks in Advance