473,978 Members | 30,061 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

One datagrid with two tablestyles ?

I got one datagrid to show the master-detail relation data.
I know how to set the Tablestyles for one datagrid,
However, As the user 'expand' the record, I don't know how to set its child
columnstyles.
Does anyone know ??

Thanks in advance
Nov 21 '05 #1
3 1191
i know how to do it ..
Plesase ignore this post.

"Agnes" <ag***@dynamict ech.com.hk> ¦b¶l¥ó
news:ua******** ******@TK2MSFTN GP10.phx.gbl ¤¤¼¶¼g...
I got one datagrid to show the master-detail relation data.
I know how to set the Tablestyles for one datagrid,
However, As the user 'expand' the record, I don't know how to set its child columnstyles.
Does anyone know ??

Thanks in advance

Nov 21 '05 #2
HI Agnes,

and the solution is....?

Greeting

Thomas

"Agnes" <ag***@dynamict ech.com.hk> schrieb im Newsbeitrag
news:e$******** ******@TK2MSFTN GP10.phx.gbl...
i know how to do it ..
Plesase ignore this post.

"Agnes" <ag***@dynamict ech.com.hk> ¦b¶l¥ó
news:ua******** ******@TK2MSFTN GP10.phx.gbl ¤¤¼¶¼g...
I got one datagrid to show the master-detail relation data.
I know how to set the Tablestyles for one datagrid,
However, As the user 'expand' the record, I don't know how to set its

child
columnstyles.
Does anyone know ??

Thanks in advance


Nov 21 '05 #3
I can declare two different table styles
Dim dgtsListField_1 As New DataGridTableSt yle
Dim dgtsListField_2 As New DataGridTableSt yle
............... .........

dgStandard.Tabl eStyles.Add(dgt sListField_1)
dgStandard.Tabl eStyles.Add(dgt sListField_2)

From Agnes

"thomas wenning" <no************ *******@gmx.de> ¦b¶l¥ó
news:%2******** ********@TK2MSF TNGP10.phx.gbl ¤¤¼¶¼g...
HI Agnes,

and the solution is....?

Greeting

Thomas

"Agnes" <ag***@dynamict ech.com.hk> schrieb im Newsbeitrag
news:e$******** ******@TK2MSFTN GP10.phx.gbl...
i know how to do it ..
Plesase ignore this post.

"Agnes" <ag***@dynamict ech.com.hk> ¦b¶l¥ó
news:ua******** ******@TK2MSFTN GP10.phx.gbl ¤¤¼¶¼g...
I got one datagrid to show the master-detail relation data.
I know how to set the Tablestyles for one datagrid,
However, As the user 'expand' the record, I don't know how to set its

child
columnstyles.
Does anyone know ??

Thanks in advance



Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1543
by: Michael Schindler | last post by:
I can see my values date and values "S" in the datagrid but if i want save i get the error the cells are null..but i can see. If i chanche the date from 03.03.2003 to manuell 03.03.2003 and change the "S" to manuell "S" i can save this into the database. what can I make that it functions with these zero values?
2
7556
by: michael walser | last post by:
display checkbox in datagrid. I find that there are 3 status: checked - check box with click icon unchecked - blank in check box unknown - click icon but color in gray..... How can I set the check box only 2 status, checked and unchecked?
2
6431
by: CSL | last post by:
I am using the DataGrid in a Windows Application, how can I adjust the widths of each column individually.
3
1287
by: Stan Sainte-Rose | last post by:
Hi, I have a winform with 1 datagrid and several datagridtablesStyles mapping different datatables. Is it possible to select a specific DataGridTableStyle for the datagrid ? Or do I have to create one datagrid for each DataGridTableStyle ? Stan
17
7452
by: Mike Fellows | last post by:
im trying (unsucessfully) to add a checkbox column to my datagrid i basically have a datagrid that im populating from a dataset Me.DataGrid1.DataSource = ds.Tables(0) the datagrid then has 5 columns in it but i need to add a sixth column which will be my checkbox column - any help or pointers with this would be great
0
312
by: Jorge | last post by:
Hello All I am trying to preserve the width of column in a datagrid made by the user. On form load i use this <code> Me.DataGrid2.TableStyles("artenc").GridColumnStyles (0).Width = 30 Me.DataGrid2.TableStyles("artenc").GridColumnStyles (1).Width = 30
0
1930
by: Asgorath | last post by:
Hello All I am trying to preserve the width of column in a datagrid on form load i use this <code> Me.DataGrid2.TableStyles("artenc").GridColumnStyles(0).Width = 30 Me.DataGrid2.TableStyles("artenc").GridColumnStyles(1).Width = 30 Me.DataGrid2.TableStyles("artenc").GridColumnStyles(2).Width = 30 </code> After i update the datagrid dataset i manualy rezised the 3 columns
7
1459
by: Doug Bell | last post by:
Hi, How can I determine the number of columns in a DataGrid? What I am trying to do is to build a function that will resize the last column to fill the remaining space in the DataGrid. Something like:? Dim intCols As Integer = DataGrid1.DataSource.Columns.Count Dim intUsedWidth as Integer=0
0
2606
by: Bob Davies | last post by:
Hi I have a webservice that retrieves data from a database, this is then returned to the calling client application built in windows forms within a dataset, however upon attempting to create tablestyles to format any of the columns within the datagrid, the exception "Can-not parent objects created on one thread to objects created on another" or words to that effect. I'm not too sure if what I said make sense, but i will add details to...
6
2254
by: Doug Bell | last post by:
Hi I have a DataGrid with some hidden columns and also some read Only and some ComboBox Columns. Sandard Tabbing through the Datagrid sees the focus go to the hidden columns requiring further Tabbing to get to the desired column but it works fine stopping correctly on the ComboBox column. I have built a routine to test whether the use is Tabbing forward or back (Shift Tab) by looking at the last location, not by trapping the Keys. If
0
10356
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11823
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
11413
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10916
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
10085
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8464
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7617
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6418
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
4732
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.