Grid problem due to null fields?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I've just created a fairly routine grid but I have a problem that seems to be
caused by the query. The query is a Left outer join consisting of 5 fields
and the last two are frequently Null. The configuration of the grid is
fairly routine and I've done it like this dozens of times - create an array
of DataGridColumnStyle, configure each column and set it's width and then do
an AddRange to GridColumnsStyle.

The problem is that even though normal widths are set, the columns are not
visible. It's as if the width has gone to zero. I have not seen nulls do
this before in a grid. Any ideas?
 
What exactly do you mean by 'type of data source?' I don't see any place to
set incoming data type.
 
Hold everything. I just found the problem and it's not what I expected.

The grid is intended for displaying a Left Outer Join on 2 tables. In the
mappingname I put the complete name of the field in <tablename>.<fieldname>
format. Luckily there are no duplicate field names in the join so when I
removed the <tablename>. , everything worked perfectly.

I'm fine for now but what happens if I need to display identically named
fields from 2 tables in the future?
 
Back
Top