tags:

views:

325

answers:

1

how to set tool tip for each cell of a devexpress gridview in asp.net & c#.net

A: 

First, set the "OnHtmlDataCellPrepared" property of your grid, like this:

<dx:ASPxGridView ID="ASPxGridView1" runat="server" 
    OnHtmlDataCellPrepared="ASPxGridView1_HtmlDataCellPrepared">
</dx:ASPxGridView>

Then set the "title" attribute of the cells in your codebehind:

protected void ASPxGridView1_HtmlDataCellPrepared(object  sender,  DevExpress.Web.ASPxGridView.ASPxGridViewTableDataCellEventArgs  e)  
{
    e.Cell.Attributes.Add("title", "Your Tooltip");
}
mhughes