DataGrid to GridView Conversion changes

I created a table describing, which fields/elements I had to change when converted existing DataGrid to GridView .
Mapping for some other elements can be found in the article here.
 
 
asp:DataGrid
asp:GridView
Comment
asp:TemplateColumn
 
asp:TemplateField
 
asp:BoundColumn
 
asp:BoundField
 
AlternatingItemStyle
 
ItemStyle
 
DataGridItemEventArgs
 
ItemDataBound event
DataGridItemEventHandler
 
 
ItemCreated event
 
e.Item
e.Row
e is EventArgs parameter
e.Item.ItemType
e.Row.RowType
 
ItemType.Item
DataControlRowState.Normal
ItemType.AlternatingItem
DataControlRowState.Alternate
 
 
ItemTemplate for alternating item not available, in code used check for ItemType.AlternatingItem or
AlternatingItemStyle
AlternatingItemTemplate
 
 

posted @ Wednesday, October 17, 2007 3:06 PM

Print

Comments on this entry:

# re: DataGrid to GridView Conversion changes

Left by azam at 2/28/2008 9:09 AM
Gravatar
datagrid to gridview

Your comment:



 (will not be displayed)


 
 
 
Please add 2 and 3 and type the answer here:
 

Live Comment Preview:

 
«December»
SunMonTueWedThuFriSat
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910