hi............
I have following solution for which in javascript.you can call this code on button submit or any other event.
<pre lang="Javascript">
var inputListUnit = document.getElementById('gridName').getElementsByTagName("input");
for (var i = 0; i < document.getElementById('grvUnit').rows.length; i++) {
if (inputListUnit[i].type == "text") {
if (document.getElementById(inputListUnit[i].id).value =='') {
alert('item can't be empty')
}
}
}
I hope it helps you.