Home > ASP.NET > Difference between RowCreated, RowDataBound ,RowCommand

Difference between RowCreated, RowDataBound ,RowCommand

RowCreated event fires when the html-controls for a row are created. For example the controls you specify in templates, such as a text box or a dropdownlist. Data binding has not yet taken place.

RowDataBound event fires when the data row is bound to the data of the GridView. Can be used to do data manipulation based on the custom condition, or do logical function based on the data for each GridViewRow or to alter the UI of each row based on the  condition.

RowCommand event fires when a button is clicked from inside the GridView Row. Can be used to Select,Insert,Update, Delete, or to do custom operation inside the GridViewRow

 

 

 

 

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

%d bloggers like this: