i have datagridview option allowusertoaddrows = true. user can see last blank line , if inserts there new row generated.
i have calculations when user changes cell values use endedit event. , use custom contextmenu delete rows datagridview.
so problem, if add new row (and important) if not change selected row after creation, , delete row through contextmenu both rows, newly created , 1 want delete dissapear.
i see if create new row row initial in detached state , gets added after change selected row.
so question, there way create row , set state added programmatically? there setadded method in datarow couldn´t call when row detached.
i have found msdn article says had add row rowcollection rowstate added, in case (and mind) row allready in rowcollection course add datagridview....
i hope understand creepy english, if need sourcecode understand meaning ask.
best regads
you listen rowsadded
event , change 1 of values on new row in handler (and change user not notice). should same manually changing values on row.
if no values changed on new row, it's not added default, otherwise each edit new blank row added collection.
Comments
Post a Comment