We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Adding comments to each Aspose WebGrid cell from the UI in .NET


Is there a way where we can add comments for each cell from UI in web grid?




Yes, you may add comments to the cells in GridWeb.

Sample code:
WebCell cell = GridWeb1.WebWorksheets[0].Cells[row,column];
WebComments comments = GridWeb1.WebWorksheets[0].Comments;
WebComment comment = comments.AddComment(cell);
comment.Note = “Your comment text”;

See the demo for your reference:

Hi Amjad,

Thanks for your replay.

You have provided me the way to add comments from the code behind. But our requirement is to add comments from the User Interface (like how we will input values into cells).

May be on right click of the cell we should be able to provide comments for that cell.

Is this feasible?

Thanks In advance.



We do not provide “Insert Comment” option by default. But, I think you may try to add your favorite context menu options and write the code behind it (as I have provided to you in my sample code) accordingly.
See the demo:

Anyways, I have logged a ticket for it with an id: CELLSNET-40584. We will check if we can support it for your needs.

Thank you.


Sure, you can add comment by custom context menu and add your own code on server side.