Hi Mohamed,
I'm not sure what you mean with a gridview table. If you want to add the number of rows to a datagird, you can simply right click a column and choose one of the aggregate functions.
I hope this post is helpfull to you.
Kind regards,
Martijn Hingstman