CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 Binding to other asp.net controls

Print topic Send  topic

Author Message
bou63

Posts: 9
Posted: 08/17/2004, 11:57 AM

How can I bind the DataProvider to other controls like the vs.net datagrid. I have tried assigning the datasource of the datagrid to the DataProvider. But keep getting errors that it can't find the fields.

Thanks,
Bo

_________________
Bo
View profile  Send private message
Stan
Posted: 08/18/2004, 11:44 PM

Hi

You should not use AutoGenerateColumns option for DataGrid with CCS datasource (set it to false). And also use TemplatedColumn instead DataBoundColumn. Something like following

<asp:TemplateColumn>
<HeaderTemplate>
<b> Name </b>
</HeaderTemplate>
<ItemTemplate>
<asp:Label
Text='<%# ((agesItem)Container.DataItem).age_name.GetFormattedValue() %>'
runat="server"/>
</ItemTemplate>

<EditItemTemplate>
<asp:TextBox
runat="server"/>
</EditItemTemplate>
</asp:TemplateColumn>

Stan
Bo
Posted: 08/21/2004, 10:45 PM

Thanks Stan!

"Stan" <Stan@forum.codecharge> wrote in message
news:841244c65592a9@news.codecharge.com...
> Hi
>
> You should not use AutoGenerateColumns option for DataGrid with CCS
datasource
> (set it to false). And also use TemplatedColumn instead DataBoundColumn.
> Something like following
>
> <asp:TemplateColumn>
> <HeaderTemplate>
> <b> Name </b>
> </HeaderTemplate>
> <ItemTemplate>
> <asp:Label
> Text='<%#
> ((agesItem)Container.DataItem).age_name.GetFormattedValue() %>'
> runat="server"/>
> </ItemTemplate>
>
> <EditItemTemplate>
> <asp:TextBox
> runat="server"/>
> </EditItemTemplate>
> </asp:TemplateColumn>
>
> Stan
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>


Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.