|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Tooltip on a column?How can you make a tooltip on a bound column of a datagrid, if possible? So
I would have different tooltips for each column. Thanks. Hi Iams,
Although there isn't ToolTip property for bound column, you can set ToolTip either on Column Header or on each row: In DataGrid_ItemCreated Event ListItemType itemType = e.Item.ItemType; // Set ToolTip on Header: if(itemType == ListItemType.Header){ TableCell cell = e.Item.Cells[colIndex]; Cell.ToolTip = tool tip text; } // Set ToolTip on each row: if(itemType == ListItemType.Item || ListItemType.AlternatingItem){ TableCell cell = e.Item.Cells[colIndex]; Cell.ToolTip = tool tip text; } HTH Elton Wang elton_w***@hotmail.com >-----Original Message----- datagrid, if possible? So>How can you make a tooltip on a bound column of a Show quoteHide quote >I would have different tooltips for each column. Thanks. > > >. >
Default Paging
Dynamically created control in Datagrid problem Background of datagrid Inserting Text before the Numberic Page numbers in paging Changing paging look TemplateColumn with CheckBox DataBind in C# moving data from a page to an other page recursive relation in datagrid Disable button in datagird on condition Problem editing checkbox template column |
|||||||||||||||||||||||