I have the following code in my aspx page (simplified):
<telerik:RadGrid ID="rgd_grid" runat="server"> <MasterTableView> <Columns> <telerik:GridTemplateColumn UniqueName="Unique" HeaderText="Header" DataField="dataField"> <ItemTemplate> <%# DataBinder.Eval(Container.DataItem, "expression") %> </ItemTemplate> </telerik:GridTemplateColumn> </Columns> </MasterTableView>
I just need to do a loop in the grid to get the values ββof the cells in the code, but I did not find a way to get the value in the expression "Eval" ... I tried the following:
rgd_grid.MasterTableView.Items[0]["Unique"].Text;
But the text property is empty, and all the others are true. In fact, I tried many other things, but this seems to be the closest to the goal.
Sincerely, I appreciate every help!
source share