469,596 Members | 2,241 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,596 developers. It's quick & easy.

Data Grid Style Help

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
Jul 21 '05 #1
2 4592
May be here you'll find the answer:
http://www.dotnetsmart.com/showpost.aspx?PostID=324
"Jordan O'Hare" <jo******@breathe.com> wrote in message
news:08****************************@phx.gbl...
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

Jul 21 '05 #2
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.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Jordan O'Hare" <jo******@breathe.com> wrote in message
news:08****************************@phx.gbl...
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


Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Shane | last post: by
12 posts views Thread by pmud | last post: by
3 posts views Thread by pmud | last post: by
10 posts views Thread by John Wilson | last post: by
2 posts views Thread by Jordan O'Hare | last post: by
3 posts views Thread by kaczmar2 | last post: by
6 posts views Thread by slinky | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.