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
275
Get text from a cell in a combo within grid
posted

Hi, I've been scratching my head for a long time...

I have a webgrid bound to a table. One of the columns has a webcombo displaying text (using EditorControlID).

My question is how can I get the text from that specific cell, when I am inserting or updating a record ??

This is my code:

dim Cake as string = " "
Cake = e.Row.Cells.FromKey("idCake").ToString

  • 12004
    Suggested Answer
    posted

    Hello 89248924,

    For getting the cell's text you can obtain this through the UltraGridCell object. In the UpdateRow and AddRow server side events of the UltraWebGrid contains the RowEventArgs parameter. Within RowEventArgs you can access the cell's text or value that was updated.

    I have attached a sample for demonstrating this usage.

    Let me know if you have any questions with this matter. Thank you.

    UltraWebGrid_WebCombo_CS.zip