C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




urgent OnDataBinding="gvAudits_DataBinding" sample code for gvAudits_DataBinding()


Posted Date: 08 Aug 2008      Total Responses: 1

Posted By: Hari       Member Level: Silver     Points: 1


Hi,

Can anyone please send me the code for Gridview_ItemDataBound() sample code

OnDataBinding="gvAudits_DataBinding", for gvAudits_DataBinding() eventhandler?





Responses

Author: kumar    08 Aug 2008Member Level: DiamondRating:     Points: 4
Hi,

there is no event Gridview_ItemDatabound() but it is there in datagrid
that is now Gridview1_RowDataBound()
VS2005
 
protected void Gridview1_RowDataBound(object sender, GridViewRowEventArgs e)

{

if (e.Row.RowType == DataControlRowType.DataRow)

{

// Code here

}

}

VS2003
 
private void DataGrid1_ItemDataBound(Object sender,
System.Web.UI.WebControls.DataGridItemEventArgs e){

if(e.Item.ItemType == ListItemType.AlternatingItem ||
e.Item.ItemType == ListItemType.Item){

//Code here
}
}



thanks and regards,
Kumar



Post Reply
You must Sign In to post a response.
Next : Problem in displaying controls in textboxes
Previous : Garbage Collector
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

it help desk

Contact Us    Privacy Policy    Terms Of Use