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

Changing TableStyles at runtime?

Can you change the TableStyle of a DataGrid at runtime? I have set up two
table styles in visual studio, then depending on the value of a user
controlled combo box, I wish to apply one of the 2 styles at runtime. Is
this possible? If not then what is the point of having multiple tables
styles on a datagrid??


Jul 22 '05 #1
1 1140

Setting the mapping does that job,

I hope this helps,

Jul 22 '05 #2

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

Similar topics

by: Amos | last post by:
Can I add a column to the datagrid and also resize it? I add them like this: DataTableAddress.Columns.Add("Col1", typeof(string)); DataTableAddress.Columns.Add("Col2", typeof(string));...
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!? ...
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...
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...
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...
by: Steve | last post by:
Can you change the TableStyle of a DataGrid at runtime? I have set up two table styles in visual studio, then depending on the value of a user controlled combo box, I wish to apply one of the 2...
by: Brett Romero | last post by:
I have one DataTable used in a datagrid. I have multiple TableStyles to defining various views of the data. The table contains 20 unique columns. I have four TableStyles, each with containing...
by: Aziz | last post by:
1. I have a shopping basket DataGrid with a list of products. What I want to do is when the user clicks on a row, a button will become visible/be created that allows user to edit the quantity. The...
by: blufox | last post by:
Hi All, Can i change the execution path of methods in my process at runtime? e.g a()->b()->c()->d()->e() Now, i want execution to be altered at runtime as -
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...
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,...
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: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.