Geeks With Blogs

News My Blog has been MOVED to https://mfreidge.wordpress.com

Michael Freidgeim's OLD Blog My Blog has been MOVED to https://mfreidge.wordpress.com
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 on Wednesday, October 17, 2007 3:06 PM ASP.NET | Back to top


Comments on this post: DataGrid to GridView Conversion changes

# re: DataGrid to GridView Conversion changes
Requesting Gravatar...
Thanks. very helpful
Left by Talal on Apr 13, 2009 7:02 AM

Your comment:
 (will show your gravatar)


Copyright © Michael Freidgeim | Powered by: GeeksWithBlogs.net