views:

11

answers:

0

on my winform app, I have a xtragrid (layoutview), and several radio buttons. each button will retrieve data from database and display as cards in layoutview. btn1 is like "select abc, cde, efg, hij from table_1" and btn2 "select abc, cde, hij from table_2". If I click btn1 first, all four fields will show. If I switch to btn2, however, field "efg" will appear as well, which show no data since table_2 doesn't have this field. The data were indeed retrieved from table_2, though. If I click btn2 first, then btn1, field "efg" won't appear in either cases. Again, the data look right.

I am really struggled with what is wrong here. Someone mentioned that I may need to look into how the view is initialized or cached. But I found no info regarding it. Can someone please shed some light on the issue? Thanks!!!