This project is read-only.

String field displayed only when edited

Jun 1, 2009 at 3:10 AM

Hi,

I'm experiencing a weird problem. I've used the sourcegrid with several datasources with no problem (I use the 4.20 stable release), in the same application.

The datasource is a simple dataview of a simple datatable with 6 columns of  integer, string and date fields, with about 3500 rows. All fields display correctly except one (type string) that doesnt display the string except if I edit it.

The problem exists even if I create another field with the same content, or even if I let the grid create automatically (I use predefined settings to setup the grids otherwise). I've checked the datasource (it contains the values), the dataview (idem). The values are there but not displayed (the other strings display correctly).

The only difference between this grid and the others (in the app.) is that the datasource is a shared (datatable) field of an object class and the dataview is in the main form's thread, the others are created in the main form's thread.

Do you have any idea of how to handle this situation?

However, your grid is really great.

Regards

Jun 1, 2009 at 6:10 AM

It might have something to do with "View" attached to that string column. However, it's difficult to tell. Could you send a working application to reproduce this?

Jun 1, 2009 at 10:58 PM
dariusdamalakas wrote :
>
> From: dariusdamalakas
>
> It might have something to do with "View" attached to that string
> column. However, it's difficult to tell. Could you send a working
> application to reproduce this?
>
This will not be easy as the application depends on an xml/rpc mecanism
to get data from the server side, so you'd have to run the server side
for testing. Is it possible to send screenshots on this forum? I may
show you parts of the gui concerned

Regards
Jun 2, 2009 at 7:35 AM

I actually have not tried to attach images, but it seems that there is no easy way. unfortunately :) I would expect that, however.

You could try uploading your images to some site, and then post a link. Flick, fotki, or even picasa might be a choice.

 

I actually did not understand what is the problem. What i've understood is that somehow whole column shows no data, even data table has data in that column.

maugou, screenshot would be nice, and maybe it would be possible to just construct an databable by hand, after looking what is the data that is fetched in your application?  There might be a possibility that there is a bug when changing existing datatable (at least theoretically it might be something wrong there).

If you manage to reproduce the problem, i will solve it :)

 

Jun 2, 2009 at 8:16 AM
Edited Jun 2, 2009 at 8:16 AM

 

 

 

 

Nice way to post images :) i use http://imageshack.us/ as image uploader .

Jun 2, 2009 at 9:52 AM
dariusdamalakas a écrit :
>
> From: dariusdamalakas
>
> I actually have not tried to attach images, but it seems that there is
> no easy way. unfortunately :) I would expect that, however.
>
> You could try uploading your images to some site, and then post a
> link. Flick, fotki, or even picasa might be a choice.
>
ok I'll try that way
>
>
>
> I actually did not understand what is the problem. What i've
> understood is that somehow whole column shows no data, even data table
> has data in that column.
>
that's it, plus the data is displayed if editing the cell.
>
> maugou, screenshot would be nice, and maybe it would be possible to
> just construct an databable by hand, after looking what is the data
> that is fetched in your application? There might be a possibility
> that there is a bug when changing existing datatable (at least
> theoretically it might be something wrong there).
>
I'll try to make a small code similar to the one involved in my problem,
save the actual data in some xml file to reload in that test code, and
see if the problem is still there.

> If you manage to reproduce the problem, i will solve it :)
>
I'll inform you after that

Regards
Jun 2, 2009 at 12:09 PM

Great!  loading data from xml file to repredocue the problem is just what i need. thanks