"how i can create a check box in gridview with all check option like gmail inbox and bind the data"
Use
CheckBoxField[
^] to add a checkbox column to GridView. You can bind it's check property to a field from database. The link contains an example as well.
For Check-All functionality at client side, you can use JavaScript or jQuery to implement the same. Here is one such example:
Check uncheck all checkboxes in Gridview using jQuery[
^]
"the gridview has edit option"
Use a
Edit, Update, Cancel CommandField[
^] for adding an editing functionality to the GridView.
"if i click the the primary key(bookid) will pass to another page as query string.but i want to hid the bookid in gridview and pass to the edit page."
I didn't get exactly what you are trying to do.
I suggest you to go through this tutorial before you start programming using GridView:
GridView all in one[
^]
Hope this helps!