CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> ASP.NET - InMotion Framework

 Modify MTListBox dynamically

Print topic Send  topic

Author Message

Posts: 122
Posted: 06/07/2013, 6:58 PM

Hi everyone,

I have ListBox in one of my records (a search record).
I need to know how to do at least one of these 2 things:

1) Change the SQL in a Before Build Select (or Execute).
I found this in the CCS documentation, but it gives me an error.
//Tasks_BeforeExecuteSelect ((TableCommand)Select).SqlQuery = new StringBuilder("select top 3 * from ages");
It doesn't like the "TableCommand" part... But the documentation doesn't say if I maybe need to add some sort of "Using" tag at the top of the page.

2) Change only the "DataTextField".
I've tried to use the DataTextField property of MTListBox, but nothing happens. I must be using it wrong.

Has anyone ever tried something like this? I've done it in other languages, but I can't get it to work with C#... Thanks.
View profile  Send private message

Posts: 191
Posted: 06/07/2013, 8:51 PM

This link talks about modifying the sql for a grid but I think it will work for a listbox as well.

This link talks about modifying the list of values of a listbox.

For #2, try changing the DataTextField property in the BeforeExecuteSelect event.

View profile  Send private message

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

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login

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