简体   繁体   中英

C# custom control in WinForm with DataGridView and bar graph

I'm currently working on a Windows program using c#, and customer give these figures below

Figure 1: data list record

Tap the subject like "Player", "Class" or "Name of Student" to update the record display in ascending or descending order.

Student name looks like TextBox has border, and editable.

Individual Record "more info" is clickable like hyperlink.

I'm considering use DataGridView, but how to achieve these style? (how to make cell like TextBox? The hyperlink in the cell? Another ways to do that?)

About the graph, is there any free libraries or ways to make bar graph like below?

Figure 2: bar graph

Any suggestions would be appreciated.

Edited

Here is what I tried so far: Figure 3: demo-test

And my questions:

  1. How to custom header like figure 1?

  2. I have no idea how to use DataGridCellStyles to make cell has border, any sample codes?

I already try to describe my questions as possible and show what I have done, but got 3 downvotes?????

You can define DataGridCellStyles to make them appear the way you want. However, a lot of such trivial things are already taken care if you use Control Libraries like: DevExpress Grid or Infragistics (I'd prefer DevExpress).

For the Graph - you again can use a Charting Library like: Dundas Chart, ZedGraph etc

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM