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...
---------------------------------------------------------------------------
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 ??
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.