Hi,
Well, when a gridweb's custom button is clicked, the GridWeb1_CustomCommand event is raised.I think you may add an asp.net button and write code for what you want to perform.
For example we add an asp.net button, now you should add a line of code to get gridweb's data to post back on the server.
e.g
protected
void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
// Update the GridWeb's data on the server.
Button1.Attributes["onclick"] = "GridWeb1.updateData(); return GridWeb1.validateAll();";
...........................
}
}
...................
protected
void Button1_Click(object sender, EventArgs e)
{
//Your code goes here.
}
And, you may customize context menu of the GridWeb for your need too, for reference, please check the demo: http://www.aspose.com/demos/visual-components/aspose.grid/csharp/demos/common/custom-context-menu.aspx
Thank you.
Amjad Sahi
Support Developer,
Aspose Sialkot Team
Contact Us