Data Grid Style Help

J

Jordan O'Hare

Hello Everyone,

I am after some help with the following:

I have a windows application that contains a list box and
two data grids. All three controls are binded to a dataset
that contains five tables, and three relations that I want
to take advantage of. Everything works fine however I want
to use the data grid table style editor to make it look
more presentable. Currently I have successfully done this
without any problem with the first data grid. I binded the
data grid to relation 1 and then defined the columns that
I want to display etc using the table style editor and it
is all good. The problem I am having is on the second data
grid, this grid dynamically changes when the user clicks
on an object (related data) in the listbox (the first data
grid also does this). The second data grid contains two
relations, for example when a user clicks on the data in
the listbox the datagrid displays the contents of that
object and then for each object in the datagrid there is
another relation showing an audit log (the user clicks a
plus (+) sign to display the next relation) . I know this
sounds long and complex so sorry if I have lost you. Given
that I have these two relations in the same data grid I
want only a few columns to be displayed from the data set
in both relations however I cannot seem to get this to
work. If you are still with me at this stage and know of a
way that I could do this your help would be greatly
appreciated.

Thanks very much!

Jordan
 
D

Dmitriy Lapshin [C# / .NET MVP]

Jordan,

Am I right you are willing to display columns from both relations in the
same grid? If this is so, I'm afraid this is not possible.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top