Solved

tablestyle in DatagridView

Posted on 2008-06-23
3
1,254 Views
Last Modified: 2008-07-02
hi there i used to have this line on a datagrid and it seems to be working:
Me.DGridAPD.TableStyles.AddRange(New System.Windows.Forms.DataGridTableStyle() {Me.DataGridTableStyle1})
       
how can i converted if i change it the original datagrid to a datagridview

Thanks,
jsctechy
0
Comment
Question by:jsctechy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 23

Expert Comment

by:Christopher Kile
ID: 21848011
Are you working with Web or Windows desktop objects?
0
 
LVL 1

Author Comment

by:jsctechy
ID: 21849345
Windows!
0
 
LVL 23

Accepted Solution

by:
Christopher Kile earned 500 total points
ID: 21849906
OK! :)  What version of Visual Studio are you using? and what version of .NET?  I ask this in particular because .NET 3.0 restored DataGrid to the .NET Framework and it will remain there for a while (I'm looking at docs for the .NET 3.5 DataGrid in one of my other windows).

That said,

http://msdn.microsoft.com/en-us/library/ms171628(VS.80).aspx

discusses the differences between the DataGrid and DataGridView objects on Windows.  Though I haven't seen it specifically mentioned, it looks to me as if TableStyle has gone the way of the Great Auk.  This article does specifically mention that while one DataGrid can be used to display two tables in a hierarchical relationship, two DataGridViews would be required to do the same.

We may still be able to get the special effects you want using the CellFormatting event.  Here, you can inspect DataSource and DataMember names to give special behaviors to specific tables and to specific columns in those tables if necessary.  What else do you need to do that was being done for you by setting TableStyles?

0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

622 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question