I use the following code to display a tooltip. My problem is that I cannot set the tooltip maximum width. How can I do this?
GridDataCellElement cell = sender as GridDataCellElement;if (cell != null && cell.ColumnInfo.Name == "MessageText"){ e.ToolTip.OwnerDraw = true; e.ToolTip.Draw += ToolTip_Draw; e.ToolTip.AutoPopDelay = int.MaxValue; // 24.86 days e.ToolTipText = cell.Value.ToString();}void ToolTip_Draw(object sender, DrawToolTipEventArgs e){ e.Graphics.FillRectangle(SystemBrushes.Info, e.Bounds); e.DrawBorder(); e.DrawText(TextFormatFlags.RightToLeft | TextFormatFlags.Right);}