And one thing I have found that if you did not write handler of edit, delete, update, sort, page command it will give error because when you press Edit Command of Child Grid it will find for the Row Editing Handler of child grid even if you are doing your all the activity in Row Command event. Here one thing is important is that in Row Command event of Child Grid you will get the old values in the grid means viewstate of the grid.

Naming Container as Grid View Row; now use this row.

In this article I am going to explain how we can change the Gridview Row Color/ Cell Color/ Text Color.

So In the Template Column child grid with edit and delete option will get visible.

Now, the biggest problem with this child grid is that each and every event you to write manually because grid will lost it's binding when any command is get fired. Net1.1's datagrid child grid's handler will get called when any command of childgird get fired like Edit, Delete, Sorting, Paging. Net1.1 Data grid's Inner control's event will be first handled by Grid's Item Command event irrespective of whether that control is Data Grid, Button, List Box etc.

Net 2.0's Grid View Control than the Data Grid Control in ASP. As I had worked with Data Grid Control so I knew how difficult to work with it in same project. The main difference between Data Grid and Grid View control is that the first one has central event handling which means any event raised by control inside the Data Grid's template column will be handled by Item Command event of datagrid.

But this functionality is some what different in Grid View Control. I mean to say that in Grid View Control if you have added one template column having Grid View inside it and now if you select "Column Sorting" command then it will not call any event of Master grid.

The first one is sender, so in this case it is gridview which is calling this event.

This article is very useful to all the users who are working with ASP. Here I am explaining how to work with Grid View control in ASP.

To bind the Child Grid to Child Data Source we have to use Row Data Bound event which is called every time when each row from database is bind to the Grid View's row.

Above code will be used when user hits on Master Grid Edit button.

It will directly call the sorting handler of the child grid.