If your not databinding anything from a database why are you using a gridview?
What do you mean by:
"which must be automatically displayed when control goes to next row"
Since this ultimately requires user input before the value of column 4 can be determined, I am not sure. You have not indicated that there are any other round trips to the server once the grid is displayed which means you will probably have to use JavaScript.
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7
================================================== =========