I am trying to show a Windows form tooltip inside a datagrid to highlight an error. The problem I have is every I say, "tooltip.Show" ("you have an error", datagrid, 0, 0) , tooltip is restricted within datagrids boundaries and does not go out, which ultimately This means tooltip itself covers the actual line where the error occurs.
I have about tooltip.Show ("you have an error", form1,?,?)
but I do not see an easy way to offset the datagrid Having been on the thought form Since all controls are docked, depending on how the user changes the shape of the shape, the location will change.
An alert, not only datagrid, is a Forms.DataGrid, instead it is an Infragistics UltraGrid which can be strange things in itself, which are out of their ability to make changes. Text after "
It seems that it is quite easy to check the UiIlation associated with it, to show commands from UltraGrid Here's what I'm doing to get the place:
Private Zero UltraGrid1_BeforeCellUpdate (Object Sender, BeforeCellUpdateEventArgs e) {if (DataFormat.CanEdit (e.Cell.Row.ListObject, e.Cell .Column.PropertyDescriptor)) {var tip = new system.window.form. Tolltip (); Tip.BackColor = Color.Orange; Tip.Show ("Unable to edit", this, e.Cell.GetUIElement () Rect.Left, e.Cell.GetUIElement () Rect.Top, 500 ..); E.Cancel = true; }}
Comments
Post a Comment