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
 
 
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati
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:



(not displayed)


 
 
 
 
 

Live Comment Preview:

 
«February»
SunMonTueWedThuFriSat
2930311234
567891011
12131415161718
19202122232425
26272829123
45678910