How to determine if First Row is being Added or Last Row has been Deleted?

1 reply. Last post: March 12, 2010 3:54 AM by Glenn Layaar
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

Hi,

With a WebGrid, how can I determine if First Row is being Added or Last Row has been Deleted?


I have a WebGrid with an ISDataSource.


I have tried the following but can't figure out a valid WebGrid Count:

- WebGrid.OnAddRow Event
- ISDataSource.OnInserting Event

I need to know this before the row is added so I can supply a Foreign Key to the Row being Added.


- WebGrid.OnDeletedRow Event
- ISDataSource.OnDeleted Event

I need to know this after the last row of the WebGrid is deleted so I can delete a Parent Table Row using the Foreign Key of the Row being Deleted.

Thanks,

Doug

All times are GMT -5. The time now is 2:18 AM.
Previous Next