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 Talal at 4/13/2009 7:02 AM
Gravatar
Thanks. very helpful

Your comment:



 (will not be displayed)


 
 
 
 
 

Live Comment Preview:

 
«November»
SunMonTueWedThuFriSat
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345