If I understand your question properly, you do not want to finish editing if a special value has not been entered. In iGrid.NET this can be implemented with the BeforeCommitEdit event:
private void iGrid1_BeforeCommitEdit(object sender, TenTec.Windows.iGridLib.iGBeforeCommitEditEventArgs e)
{
string myNewValue = (string)e.NewValue;
if(myNewValue != "1")
{
e.Result = iGEditResult.Proceed;
}
}
And iGrid never adds a new row automatically when you edit its cells - unless you code this explicitly.
P.S. Will move this question to the Questions section as it is not a knowledge base post.
Edited by user
2018-12-03T16:10:43Z
|
Reason: Not specified