"I need to show data on webpage using gridview."
Actually, you probably don't. It's a common mistake to throw in a technology as a requirement when it's not really a requirement. I doubt the client would ever say "we must use a gridview here". When you think like this, you can open yourself to other possibilities. In this case, I'd recommend replacing the gridview with
jqGrid[
^], a jQuery JGrid plugin. It's not free, but it is extremely powerful and extremely flexible (Disclaimer: I have nothing to do with this company, we just used this product recently and were very impressed by it).