473,386 Members | 1,647 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,386 software developers and data experts.

Switching between TableStyles in a datagrid

Hi,

I've got a datagrid bound to a CollectionBase class and I want to be able to
view the same data in two different ways (one view at a time). My two views
are defined as 2 TableStyles but I don't know how to change the default
tablestyle and move from view A to view B.

Is this a good reason to use a second TableStyle or is there a better way of
doing that?
Thanks.
Ioannis Demetriades
id**********@yahoo.co.uk
Nov 20 '05 #1
1 846
It seems that all you have to do is to change the mapping name of the
various tablestyles so that only one of them is mapped at a time.
"Ioannis Demetriades" <id**********@yahoo.co.uk> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi,

I've got a datagrid bound to a CollectionBase class and I want to be able to view the same data in two different ways (one view at a time). My two views are defined as 2 TableStyles but I don't know how to change the default
tablestyle and move from view A to view B.

Is this a good reason to use a second TableStyle or is there a better way of doing that?
Thanks.
Ioannis Demetriades
id**********@yahoo.co.uk

Nov 20 '05 #2

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

Similar topics

2
by: Andrew Donaldson | last post by:
Hi there, Long-time lurker, first-time poster: I'm working with the ExtendedDatagrid (http://dotnet.leadit.be/extendeddatagrid/) control to display a grid representing an array of objects...
2
by: Ralf | last post by:
Hi NG, if there a way to Clear a DataGrid dataGrid1.TableStyles.Clear(); or dataGrid1.TableStyles.Remove(tblStyle); or dataGrid1.TableStyles.RemoveAt(intDG); or not work!? ...
0
by: James | last post by:
Hi, I am using tablestyles to format my datagrid (windows forms) and wish to create a custom gridcolumstyle where i get the actual displayed value (or mappingname equivalent? (TextBox.Text)) is...
3
by: Agnes | last post by:
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...
3
by: Jerry Spence1 | last post by:
I have created some definitions at design time for a Datagrid. How do I actually switch one of the definition on - ie make it active? I've tried Datagrid1.TableStyles.Add - but that just adds it...
2
by: Carlos Durán Urenda | last post by:
Hi I need to know in that moment a tablestyles joins to my inherited DataGrid control Tnks
1
by: JeremyGrand | last post by:
I'd just like to confirm that one really can't use the ide to configure tablestyles & columnstyles in a datagrid. I've tried it and can't make it "take". The examples I find all show this done in...
6
by: henk | last post by:
Hi, I have a vb.net application where I need multiple "Lookup windows". I could make 10 lookup window with each there own datagrid and table style, but I want to do it Nice. I was thinking about...
2
by: harini | last post by:
hi, i have a radio button. On clicking the radio button i have to clear the already existing tablestyle of my datagrid and bind a new table to the grid with a new tablestyle. i used, ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.