Add(dgv Cell); dgv Cell = new Data Grid View Text Box Cell(); dgv Cell.
Value @ghost_j1: it's obviously not the whole code (it doesn't have the closing brace), but it's already obvious what the problem is, see my another answer. This clears the textbox BEFORE you check if it's empty */ Material Text Box.
Clear(); } yea thanks i noticed this stupid mistake done by me..after this message show up the datagridview insert new row so is there is a way to remove it or maybe discard the whole inserted row or progress ??