473,287 Members | 1,613 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,287 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 4837
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...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.