I'm looking for a way to place errormessages in the caption of the editform (in grid with editmode = popup)
I've tryed this:
but I have to click the insert-button twice, before the text showes up in the caption.
Any ideas on how to avoid having to click twice?
Btw. I can't place the errormessages as added literalcontrol to the cancel-button - this is used for some other info :o)
I've tryed this:
| protected void Grid1_InsertCommand(object source, GridCommandEventArgs e) |
| { |
| string errorMess = ""; |
| // followed by a lot of tests on the typed values ... |
| if (errorMess != "") |
| { |
| e.Canceled = true; |
| e.Item.OwnerTableView.EditFormSettings.CaptionFormatString = errorMess; |
| } |
| } |
Any ideas on how to avoid having to click twice?
Btw. I can't place the errormessages as added literalcontrol to the cancel-button - this is used for some other info :o)