By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,666 Members | 1,784 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,666 IT Pros & Developers. It's quick & easy.

Data Grid Style Help

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.