Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 279
  • Last Modified:

Trouble in DataGrid paradise

Greetings,

I have a major problem deploying my program since the DataGrid displays correctly on my development machine, but not at all on my deployment machine.  The two machines have a different video resolution, but I have commented out all the
TableStyle code, and am quite puzzled of the cause of the problem.

My resolutions are: 1024 X 768 (development machine, working) and 1280 X 800 (deployment machine, not working).

On the deployment machine, the DataGrid displays as an empty area.  No columns, no rows.  Nothing.  On the development machine, I see a working DataGrid.  I even removed all TableStyles formatting, thinking this was causing the problem.  But that wasn't it.

Has anyone got any idea of anything I can try?  I'd really appreciate it.  I'm at my wit's end.


Bob
0
ba272
Asked:
ba272
  • 4
  • 2
1 Solution
 
ba272Author Commented:
I fogot to mention, I use an ArrayList as a DataSource. So, the only line of code in the Load function for the dialog is:

this.alertsDataGrid.DataSource = myArrayList;
0
 
ba272Author Commented:
but to make this problem a bit more confusing, I did see it working on the deployment machine several days ago.
0
 
ba272Author Commented:
I have a second DataGrid which works the same on both my development machine as it does on my deployment machine, but that one uses a DataSet as a DataSource.  So I am considering writing the contents of of my ArrayList to a database table, then creating a DataSet based on a query to that table.

This seems like a lot of work if it's unnecessary.  Hoping that this will give someone an idea of a possible cause of the problem.

Bob
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
wlfsCommented:
Hi Bob,

it's very difficult to comment on your problem since the cause could be just about everywhere :(
Just a few thoughts:
I doubt very much that the screen resolution could have an influence w.r.t. your problem.
Are you sure the content of myArrayList is the same on both machines? Did you double- or triple-check it? How is myArrayList generated? Maybe the problem is located there.
0
 
ba272Author Commented:
I've decided to proceed and fill the DataSet from Access, which my tests show will likely eliminate the problem.  I need better persistence of the list anyway, and have decided to go that way.

BTW: what's w.r.t.?

Bob

0
 
wlfsCommented:
w.r.t. = with respect to
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now