Why i not recive the submit data from GridWeb?
When i generate the page the following code:
protected void Page_Load(object sender, System.EventArgs e)
{
Aspose.Grid.Web.GridWeb gridweb = new Aspose.Grid.Web.GridWeb();
gridweb.ID = "Grid";
gridweb.Height = 500;
gridweb.Width = 700;
HeaderTable.Rows[0].Cells[0].Controls.Add(gridweb);
return;
}
Probably i find the problem
To recive a submit data i must handle the event "SheetDataUpdated"
henry
June 1, 2006, 7:38pm
3
Hi,
Do you mean that you want to get grid input by click another button in the page? You may reference this document:
Class Libraries & REST APIs for the developers to manipulate & process Files from Word, Excel, PowerPoint, Visio, PDF, CAD & several other categories in Web, Desktop or Mobile apps. Develop & deploy on Windows, Linux, MacOS &...
And I think that you don't describe your code clearly. Is the HeaderTable object created dynamically too? If so, you should add it to the page's form object like this:
...
in Page_Load
...
this.FindControl("WebForm1").Controls.Add(HeaderTable);
...
Thank you.
henry
June 1, 2006, 7:43pm
4
OK, I have just seen your reply. The control fires the SheetDataUpdated event after it loads client input.
I have a next problem.
I dont know how get a SelectCells in the SheetDataUpdated event Handler.
in the following code i get error:
Aspose.Grid.Web.Data.WebCell cell = (Aspose.Grid.Web.Data.WebCell)(((Aspose.Grid.Web.GridWeb)sender).SelectCells );
"Unable to cast object of type 'System.Collections.ArrayList' to type 'Aspose.Grid.Web.Data.WebCell'. "
in help:
Documentation: Aspose.Grid.Web: API Reference: GridWeb.SelectCells Property
public System.Collections.ArrayList SelectCells {get;}
it is not enough for me.
henry
June 1, 2006, 11:58pm
6
The item SelectCells collection is also an ArrayList collection, and it contains a line of selected cells. You may write like this:
WebCell cell = (WebCell)((ArrayList)SelectCells[0])[0];