for gridviews, how can i get the cell values as well as column names from it when click on a button and this button sometimes can be embedded within a gridview row also can be outside the gridview somewhere else on the page. my stupid and simple way is to find the control of the gridview columns by creating each column as a label type on client side. so it's something on the server side for getting the text values like,for gridviews, how can i get the cell values as