put tooltip on grid column
-
how to put tooltip on the datagrid column header and also on cell of that column using vb.net 2003? plz help if anyone knows.here datagrid is bound at runtime.
-
how to put tooltip on the datagrid column header and also on cell of that column using vb.net 2003? plz help if anyone knows.here datagrid is bound at runtime.
-
Try to post your Query only once. For putting the tooltip on each cell, try the MouseMove event of the datagrid. Enter the Required ToolTip there.. Hope this helps..
The name is Sandeep
In the grid's Mousemove Event Use this code to display the contents of Cell as tooltip Hope this helps dim str as string = "" Dim pt As Point = New Point(e.X, e.Y) Dim hti As DataGrid.HitTestInfo = gridName.HitTest(pt) If gridName.VisibleRowCount > 0 Then Dim bmb As BindingManagerBase = frm.BindingContext(gridName.DataSource, gridName.DataMember) If hti.Row < bmb.Count And hti.Type = DataGrid.HitTestType.Cell Then str = gridName.Item(hti.Row, hti.Column) ' Or the required tool tip Else str = "" End If Else str ="" End If if str <> "" then ToolTip1.SetToolTip(sender, str)