10623 : Getting the values out of the grid

Question

Hi Would you please help me to solve my problem. I am using your grid for for some other purpose as well, would you please tell me how to get the value of each cell of a selected row and assign to a variables so I can use those variable to save the data in the database

Answer

The easiest way to handle grid data is by databind, but you can set and add values directly to grid cells like this:

string data = GridNode.GetCell(theColumnIndex).Content.Value;

The Content property contains an object of type PlexityHide.GTP.TimeDate, PlexityHide.GTP.SingleText, PlexityHide.GTP.MultiText, PlexityHide.GTP.CustomCell, PlexityHide.GTP.ComboText or PlexityHide.GTP.BoolCheck depending on what kind of CellType you have set in the column.

 

Leave a Reply