Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2254
How to get the underlying grid object of the WebCombo in C# ?
posted

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

 

Parents
  • 90
    Verified Answer
    posted

    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

     

Reply Children
No Data