vb.net - ASP.NET BoundColumn ToolTip -


is there way add tool tip boundcolumn? code....

    <asp:boundcolumn datafield="personname" sortexpression="personname" headertext="name">         <headerstyle horizontalalign="center" width="10%" verticalalign="top"></headerstyle>         <itemstyle horizontalalign="center" verticalalign="top"></itemstyle>     </asp:boundcolumn> 

i using tablecell before , decided switch bound column, in doing realized tooltips not attribute of boundcolumn, need tooltips.

so it's datagrid control , want have tooltip on header-cell. can use itemdatabound:

protected sub sortabledatagrid_itemdatabound(sender object, e datagriditemeventargs) handles grid0.rowdatabound     select case e.item.itemtype         case listitemtype.header             'presuming it's first column:             e.item.cells(0).tooltip = "your tooltip header cell"     end select end sub 

if it's gridview code similar:

protected sub sortablegridview_rowdatabound(sender object, e gridviewroweventargs) handles grid0.rowdatabound     select case e.row.rowtype         case datacontrolrowtype.header             'presuming it's first column:             e.row.cells(0).tooltip = "your tooltip header cell"     end select end sub 

Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -