G
Guest
I have a DataGrid with a checkbox as ItemTemplate....
<asp
ataGrid id="Datagrid3" runat="server" AutoGenerateColumns="False" >
<Columns>
<asp:TemplateColumn>
<ItemTemplate>
<asp:CheckBox id="Chk" Text="<%# Container.DataItem %>"
runat="server">
</asp:CheckBox>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp
ataGrid>
in my codebehind file I have a query
Select productname form product, the results of which are held in a DataReader
and the DataReader is the source of Data for Datagrid3.
Query exectues fine but on the page I get the following instead of the
actual data.
System.Data.Common.DbDataRecord.
What am I doing wrong?
Thanx in advance.
<asp
<Columns>
<asp:TemplateColumn>
<ItemTemplate>
<asp:CheckBox id="Chk" Text="<%# Container.DataItem %>"
runat="server">
</asp:CheckBox>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp
in my codebehind file I have a query
Select productname form product, the results of which are held in a DataReader
and the DataReader is the source of Data for Datagrid3.
Query exectues fine but on the page I get the following instead of the
actual data.
System.Data.Common.DbDataRecord.
What am I doing wrong?
Thanx in advance.