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
Post a Comment