473,385 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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 4843
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Shane | last post by:
I made a Database in MS Access, and i want to try to port it over to VB.NET. One thing i have is a subform that is a datasheet. what I want to know, is there away to make the data grid to have...
2
by: Tonya | last post by:
Hi, i wanted to know how i could resolve the following error message: An unhandled exception of type 'System.ArgumentException' occurred in system.dll Additional information: The data grid...
12
by: pmud | last post by:
Hi, I am using teh following code for sorting the data grid but it doesnt work. I have set the auto generate columns to false. & set the sort expression for each field as the anme of that...
3
by: pmud | last post by:
Hi, I have a web page (asp.net, code:c#). I havean html table with text boxes. Based on the user input , records are displayed in the data grid below it. Now the datagrid has a large no. of...
5
by: tshad | last post by:
Is there a way to carry data that I have already read from the datagrid from page to page? I am looking at my Datagrid that I page through and when the user says get the next page, I have to go...
10
by: John Wilson | last post by:
My app produces some long datatables to display in a grid. So I put them in a div so users can scroll. But the grid headers scroll out of view. I would like to stop them doing this. Can I fix them...
2
by: Jordan O'Hare | last post by:
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...
3
by: kaczmar2 | last post by:
Hey there, I have a large image in a browser window, and I would like a way to overlay grid lines on top of the image, so a user can show the grid or hide the grid lines. The grid would cover...
6
by: slinky | last post by:
I found the following code to transfer datagrid data to an Excel file. Is this written in C#?... I'm a vb.netter. I'm just not sure where to place the code to experiment on it. Should I place it in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.