Hello,
I have an WebCombo control. On the Page_Load() server side event I'd like to find the underlying grid object.
I know that in JavaScript is easy using the webCombo.getGrid(); method
Does anybody know how can the same thing be achieved in code behind ?
Thank you very much
Thank you for your answer. In C# we can write something like this:
using Infragistics.WebUI.UltraWebGrid;
UltraWebGrid comboGrid = (UltraWebGrid) webCombo1.Controls[0];
See this article for an example http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=7700
Hey,
This does the magic in VB
Dim comboGrid As Infragistics.WebUI.UltraWebGrid.UltraWebGrid = DirectCast(<WebCombo>.Controls(0), Infragistics.WebUI.UltraWebGrid.UltraWebGrid)..
WebCombo.Controls(0) would give you the grid. You need to cast it to the Ultrawebgrid type and then use it as a normal grid.
Sujeeth