Hi Haneef,
I fixed that problem, it works now.
I have another need now:
The interior of the grid should contain cells of the following type (usercontrol):
-Combobox with exclusive choice list showing values from 1 - 5 and N/A
-Button for editing a richtextbox (inside the same cell, which would be an "Editable Tooltip")
-A custom Tag which includes the row headers and additional info class.
Could you send me a renderer / modell which coontains such definitions (at least for a usercontrol)? Thanks in advance
Hans
>Hi Hans,
Try changing the add_Comment method in CommentMouseController.cs to below code snippets. Please refer to the attached sample for implementation and let me know if this helps.
private void add_Comment(object sender, EventArgs e)
{
GridRangeInfo info;
bool b = owner.Model.CoveredRanges.Find(rightClickRow, rightClickCol, out info);
GridExcelTipStyleProperties style;
if (b)
style = new GridExcelTipStyleProperties(owner.Model[info.Top, info.Left]);
else
style = new GridExcelTipStyleProperties(owner.Model[rightClickRow, rightClickCol]);
style.ExcelTipText = "";
StartEditing();
}
Here is a sample.
CellCommentTips.zipBest regards,
Haneef