Click here to Skip to main content
16,005,120 members
Home / Discussions / C#
   

C#

 
Generalconnecting throw modem Pin
Amirjalaly10-Jun-04 10:50
Amirjalaly10-Jun-04 10:50 
GeneralRe: connecting throw modem Pin
Heath Stewart11-Jun-04 3:05
protectorHeath Stewart11-Jun-04 3:05 
QuestionSorting DataGrid => DataTable ?? Pin
V.10-Jun-04 9:25
professionalV.10-Jun-04 9:25 
AnswerRe: Sorting DataGrid => DataTable ?? Pin
Bill Dean10-Jun-04 10:04
Bill Dean10-Jun-04 10:04 
GeneralDataGrids and Business Objects Pin
mchean10-Jun-04 9:16
mchean10-Jun-04 9:16 
GeneralRe: DataGrids and Business Objects Pin
Heath Stewart10-Jun-04 10:17
protectorHeath Stewart10-Jun-04 10:17 
GeneralRe: DataGrids and Business Objects Pin
mchean11-Jun-04 8:24
mchean11-Jun-04 8:24 
GeneralRe: DataGrids and Business Objects Pin
Heath Stewart11-Jun-04 8:55
protectorHeath Stewart11-Jun-04 8:55 
As I mentioned to someone in an earlier post today, you don't need to clear the table styles. Note that plurality: DataGrid.TableStyles. So long as a unique MappingName exists for all the DataGridTableStyles you have for the DataGrid, you can keep them all in the collection. This is especially nice when you want to bind different data sources to the same DataGrid.

Also, if you cleared the DataGrid.TableStyles and added a new DataGridTableStyle after setting the DataSource property, nothing will show up: table styles are used when binding the DataGrid, but from what I can tell in the IL for the related classes and methods is that changing the table styles does not re-bind the data source (which is actually a good idea in case you wanted to modify table styles while binding a large dataset).

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: DataGrids and Business Objects Pin
mchean11-Jun-04 9:06
mchean11-Jun-04 9:06 
GeneralRe: DataGrids and Business Objects Pin
Heath Stewart11-Jun-04 9:09
protectorHeath Stewart11-Jun-04 9:09 
GeneralMonitoring Database Exceptions Pin
aberger5610-Jun-04 8:35
aberger5610-Jun-04 8:35 
GeneralRe: Monitoring Database Exceptions Pin
Heath Stewart10-Jun-04 10:09
protectorHeath Stewart10-Jun-04 10:09 
GeneralMDI Child Windows Z-Order Pin
Peter Vertes10-Jun-04 8:32
Peter Vertes10-Jun-04 8:32 
GeneralRe: MDI Child Windows Z-Order Pin
Heath Stewart10-Jun-04 10:02
protectorHeath Stewart10-Jun-04 10:02 
GeneralRichTextBox LoadFile question Pin
Flack10-Jun-04 7:58
Flack10-Jun-04 7:58 
GeneralRe: RichTextBox LoadFile question Pin
Dave Kreskowiak10-Jun-04 8:16
mveDave Kreskowiak10-Jun-04 8:16 
GeneralLaunching an External Executable Pin
ZeldaFreak10-Jun-04 5:42
ZeldaFreak10-Jun-04 5:42 
GeneralRe: Launching an External Executable Pin
Dave Kreskowiak10-Jun-04 5:58
mveDave Kreskowiak10-Jun-04 5:58 
GeneralReplace a pattern in a an html file Pin
Sam9643410-Jun-04 5:26
Sam9643410-Jun-04 5:26 
GeneralRe: Replace a pattern in a an html file Pin
Dave Kreskowiak10-Jun-04 7:20
mveDave Kreskowiak10-Jun-04 7:20 
GeneralCF dataset help Pin
lukesmith9910-Jun-04 5:09
lukesmith9910-Jun-04 5:09 
GeneralRe: CF dataset help Pin
Dave Kreskowiak10-Jun-04 5:43
mveDave Kreskowiak10-Jun-04 5:43 
GeneralRe: CF dataset help Pin
lukesmith9910-Jun-04 7:42
lukesmith9910-Jun-04 7:42 
GeneralRe: CF dataset help Pin
Dave Kreskowiak10-Jun-04 8:12
mveDave Kreskowiak10-Jun-04 8:12 
GeneralRe: CF dataset help Pin
lukesmith9910-Jun-04 8:31
lukesmith9910-Jun-04 8:31 

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.