Example of gridview rowcommand on Button Click

Introduction

One of the most used controls in my projects is Gridview. Therefore, I thought of writing a tip which has been used in my projects frequently.

Background

Gridview displays the value of a data source in a table. Here, I am going to give an example of using an event called "RowCommand". The RowCommandis raised when a button, LinkButton or ImageButton is clicked in the Gridview Control.

Comments and Discussions

Cool code - very handy. I've been trying to figure out a way to make this code load up with the expanded view by default, instead of having to click on all the + signs to open up each line. Is there a way to modify it to work like this?