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
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.
Yes, but how do you get the cell's text when using a WebDataGrid? I can't use FindControl because i don't always know the template control ID.
i just want to loop through the grid after i databind and look at the value of each cell but all cells are empty. How can this be?