Click here to Skip to main content
15,914,016 members
Home / Discussions / C#
   

C#

 
GeneralRe: Design Question: Correct way to show data from mutliple DB tables Pin
Michael Potter11-Jun-04 5:01
Michael Potter11-Jun-04 5:01 
GeneralRe: Design Question: Correct way to show data from mutliple DB tables Pin
James Spibey11-Jun-04 5:52
James Spibey11-Jun-04 5:52 
GeneralMicrosoft Excel Plugin Help Pin
Asad Hussain11-Jun-04 3:41
Asad Hussain11-Jun-04 3:41 
Generaltabpage events Pin
robmays11-Jun-04 2:07
robmays11-Jun-04 2:07 
GeneralRe: tabpage events Pin
Corinna John11-Jun-04 2:20
Corinna John11-Jun-04 2:20 
GeneralRe: tabpage events Pin
robmays11-Jun-04 20:45
robmays11-Jun-04 20:45 
Generalproblem in applying grid style to datagrid Pin
Anonymous11-Jun-04 2:06
Anonymous11-Jun-04 2:06 
GeneralRe: problem in applying grid style to datagrid Pin
Heath Stewart11-Jun-04 4:14
protectorHeath Stewart11-Jun-04 4:14 
If the DataGridTableStyle.MappingName is different for both (and it must match up with the data source, such as a DataTable, array, or an IList implementation's class name), then you don't need to clear them. That's why the DataGrid.TableStyles property is a collection property. So long as the styles handle different data sources, it's not a problem to keep both in there. In fact, I'm pretty sure you're using different MappingNames since the Add method checks for duplicates and throws an exception in such a case. Just keep both styles in the collection.

When you're applying a style, you must re-bind the data source. The data source is "stylized" during binding.

 

Microsoft MVP, Visual C#
My Articles
GeneralReadin XML Attributes Pin
saud_a_k11-Jun-04 1:14
saud_a_k11-Jun-04 1:14 
GeneralRe: Readin XML Attributes Pin
Alex Getman11-Jun-04 2:45
Alex Getman11-Jun-04 2:45 
GeneralRe: Readin XML Attributes Pin
saud_a_k11-Jun-04 3:00
saud_a_k11-Jun-04 3:00 
GeneralRe: Readin XML Attributes Pin
Heath Stewart11-Jun-04 4:10
protectorHeath Stewart11-Jun-04 4:10 
GeneralRe: Readin XML Attributes Pin
saud_a_k13-Jun-04 20:55
saud_a_k13-Jun-04 20:55 
GeneralRe: Readin XML Attributes Pin
Heath Stewart14-Jun-04 3:40
protectorHeath Stewart14-Jun-04 3:40 
GeneralRe: Readin XML Attributes Pin
saud_a_k14-Jun-04 17:58
saud_a_k14-Jun-04 17:58 
GeneralRe: Readin XML Attributes Pin
Heath Stewart15-Jun-04 2:30
protectorHeath Stewart15-Jun-04 2:30 
GeneralRe: Readin XML Attributes Pin
saud_a_k15-Jun-04 17:57
saud_a_k15-Jun-04 17:57 
GeneralRe: Readin XML Attributes Pin
Heath Stewart16-Jun-04 3:20
protectorHeath Stewart16-Jun-04 3:20 
GeneralRe: Readin XML Attributes Pin
saud_a_k16-Jun-04 18:49
saud_a_k16-Jun-04 18:49 
GeneralRe: Readin XML Attributes Pin
Heath Stewart16-Jun-04 21:00
protectorHeath Stewart16-Jun-04 21:00 
GeneralRe: Readin XML Attributes Pin
saud_a_k16-Jun-04 21:11
saud_a_k16-Jun-04 21:11 
GeneralRe: Readin XML Attributes Pin
eggie511-Jun-04 12:59
eggie511-Jun-04 12:59 
GeneralRe: Readin XML Attributes Pin
saud_a_k14-Jun-04 18:02
saud_a_k14-Jun-04 18:02 
GeneralFTP Class Pin
SatyaDY11-Jun-04 0:24
SatyaDY11-Jun-04 0:24 
GeneralBeginner Q: Where to get Info on "distributed assemblies" Pin
matthias s.11-Jun-04 0:11
matthias s.11-Jun-04 0:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.