Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.


External Datawindow Displays One Row at a Time

External Datawindow Displays One Row at a Time

I have a external datawindow object that I set columns and rows. What I need to do is have all the rows display at the same time, at run time,rather than having to tab down each row.

I see all the values when I run the program (by clicking the page down key), however, only one row can be seen at a time in the datawindow.

Thanks for the help

RE: External Datawindow Displays One Row at a Time

Do you have the display area of the datawindow control expanded downward on the form so that multiple rows can show?


"Nature forges everything on the anvil of time"

RE: External Datawindow Displays One Row at a Time

Yes, I have the dw control expanded much larger than the amount of data that would be displayed. The number of rows that I have for the external dw is only 3 rows.
I load data to the external datawindow via SQL statements in a loop. Depending on the number of grade levels retrieved from another datawindow will determine the number of times I loop and enter data to the external datawindow.

For example one of our schools in our school district has grades K - 2.
So for each loop, I get the data for students in grade K, increment the loop get the data for grade 1 etc..

The data is there, just cannot see it all at the same time.

Is there something in the datawindow object that might be causing this?

RE: External Datawindow Displays One Row at a Time

One approach for this is to have the two datawindows share the same datawindow object.

Say DW_1 is the datawindow you actually do the retrieve and the filtering.

Once you have the dataset you wish to display in DW_2 you can do the following:

string ls_data
ls_data = //saves data as tab delimited string

Now you have the data displaying in DW_2 from DW_1 without any looping.


"Nature forges everything on the anvil of time"

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close