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
395
Delete Rows !!!
posted

Hi ,

I have a ultrawebgrid with rows selection as extended !

With rows selectors visible !!

 Now , i want to delete the selected rows.

I am using the code following code...

---------------------------------------------------------------------------

Dim dr As UltraWebGrid.UltraGridRow

For Each dr In Me.ExptGrid.Rows

If dr.Selected = True Then

dr.Delete()

End If

Next

----------------------------------------------------------------------

Its not working as expected :(  !!  How can i achieve this ??  

 

Parents
No Data
Reply
  • 28464
    posted

    It really depends on how / when this code is called. This could be page lifecycle events issue, for example you could be rebinding the grid after deleting the rows. Are you using the InitializeDataSource event to bind the grid, or are you binding to a declarative datasource (e.g. AccessDataSource, SqlDataSource, etc through the DataSourceID property)? Any additional information will be helpful and will provide additional clues.

Children
No Data