We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

DataBound Grid on row insert

hi I am using databound mode of grid with a property EnableAddNew= True,so it automatically inserts a record when i start entering in the row, and also throws error "column1 does not allow Nulls" any event which happens while automatically inserting a empty row in the grid? i want to trap that error by assigning value to Not null column while inserting itself Regards Rajaraman

1 Reply

PA pal March 12, 2003 03:43 AM

I already asked this question, check out below. Short answer : no, but you can trap it with rowenter event and checking the rowid + the datasource rowcount.

Loader.
Live Chat Icon For mobile
Up arrow icon