M
Michael Nemtsev
I have grid with template and bound columns likes below
===================
<asp:TemplateColumn HeaderText="Rule ID">
<ItemTemplate>
<asp:Label id="Label3" Runat="server" Text='<%#DataBinder.Eval(Container.DataItem,
"Rule ID")%>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
<asp:BoundColumn DataField="Rule Name" HeaderText="Rule Name"></asp:BoundColumn>
====================
When I trying to get access to the DataGridItems I've found that using DataGridItem.row.Controls[0].HasControls()
return *true* (template column) and DataGridItem.row.Controls[1].HasControls()
returns *false* (BoundColumn)
Could somebody explain this behavior?
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour
"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsch
===================
<asp:TemplateColumn HeaderText="Rule ID">
<ItemTemplate>
<asp:Label id="Label3" Runat="server" Text='<%#DataBinder.Eval(Container.DataItem,
"Rule ID")%>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
<asp:BoundColumn DataField="Rule Name" HeaderText="Rule Name"></asp:BoundColumn>
====================
When I trying to get access to the DataGridItems I've found that using DataGridItem.row.Controls[0].HasControls()
return *true* (template column) and DataGridItem.row.Controls[1].HasControls()
returns *false* (BoundColumn)
Could somebody explain this behavior?
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour
"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsch