Hi,
I have a radgrid.
Inside that few 'GridBoundColumn' are there and also 'GridTemplateCoulmn' are there.
When in server side, I want to access the values inside a 'GridBoundColumn', I can use 'datafield' property to get that. Like this:-
Now, my question is how to access values inside a 'GridTemplateColumn', as mentioned in aspx file above.
I want to access each value of that column, so that I could do some checking on each value and then move ahead.
Please tell what to do.
I would appreciate it.
thanks a ton:)
I have a radgrid.
<telerik:RadGrid ID="RGStyleGuideRestrictions" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" EnableEmbeddedSkins="False" Skin="Vista"> <MasterTableView EditMode="InPlace" DataSourceID="SqlDataSource1" DataKeyNames="StartDate"> <Columns> <telerik:GridBoundColumn DataField="StartDate" HeaderText="Start Date" UniqueName="StartDate" </telerik:GridBoundColumn> <telerik:GridTemplateColumn UniqueName="TemplateColumn" HeaderText="Condition"> <ItemTemplate> <asp:Label ID= "lblCondition" runat = "server" ></asp:Label> </ItemTemplate> </telerik:GridTemplateColumn> </Columns> </MasterTableView></telerik:RadGrid>Inside that few 'GridBoundColumn' are there and also 'GridTemplateCoulmn' are there.
When in server side, I want to access the values inside a 'GridBoundColumn', I can use 'datafield' property to get that. Like this:-
foreach (GridDataItem allitem in RadGrid1.MasterTableView.Items){ if ((allitem["StartDate"].Text.ToString();}Now, my question is how to access values inside a 'GridTemplateColumn', as mentioned in aspx file above.
I want to access each value of that column, so that I could do some checking on each value and then move ahead.
Please tell what to do.
I would appreciate it.
thanks a ton:)