Free Support Forum - aspose.com

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

Hi,

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

Regards,

Naresh.

Hi,


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:
http://www.aspose.com/demos/.net-components/aspose.cells/csharp/grid/common/webcells.aspx

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.

Naresh.

Hi,


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:
http://www.aspose.com/demos/.net-components/aspose.cells/csharp/grid/common/custom-context-menu.aspx

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.


Hi,

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