Click here to Skip to main content
14,972,741 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: datagridviewtextboxcell error on 350 characters Pin
Rhyde Marsh19-Nov-14 3:11
MemberRhyde Marsh19-Nov-14 3:11 
GeneralRe: datagridviewtextboxcell error on 350 characters Pin
Eddy Vluggen19-Nov-14 5:15
professionalEddy Vluggen19-Nov-14 5:15 
GeneralRe: datagridviewtextboxcell error on 350 characters Pin
Rhyde Marsh21-Nov-14 11:19
MemberRhyde Marsh21-Nov-14 11:19 
GeneralRe: datagridviewtextboxcell error on 350 characters Pin
Eddy Vluggen22-Nov-14 3:55
professionalEddy Vluggen22-Nov-14 3:55 
GeneralRe: datagridviewtextboxcell error on 350 characters Pin
Rhyde Marsh24-Nov-14 2:36
MemberRhyde Marsh24-Nov-14 2:36 
GeneralRe: datagridviewtextboxcell error on 350 characters Pin
Eddy Vluggen24-Nov-14 3:38
professionalEddy Vluggen24-Nov-14 3:38 
GeneralRe: datagridviewtextboxcell error on 350 characters Pin
Rhyde Marsh10-Dec-14 3:44
MemberRhyde Marsh10-Dec-14 3:44 
QuestionChart Control Legend Item Ordering Pin
Member 998046316-Oct-14 2:40
MemberMember 998046316-Oct-14 2:40 
Hi everybody!

I hope I am posting this question on the correct forum but anyway, I'm having some difficulty getting a Legend on a Chart Control to behave in the way I would like it to.

I want the legend to be placed under the chart, and legend items for each series to be added to the legend in the order the series are added to the chart.

Say I have 6 series which are added to the chart in order: A, B, C, D, E, F.

Suppose that the chart area in which the legend is docked is such a size that the legend has 3 columns.

I want the legend to be filled like so:

A B C
D E F

i.e. columns first, then rows.

Frustratingly, this is not the behaviour I am getting.

As I add the first three series all is fine, and I get a legend with 3 columns and 1 row filled like so:

A B C

But when I add a 4th series, instead of getting:

A B C
D

as one might expect, the legend looks like this:

A C D
B

Then when I add the next series I get:

A C E
B D

And when I add the final series I get:

A C E
B D F

This is really frustrating me as I have trawled the internet and cannot find any mention of this issue, let alone an answer. Surely wanting the legend to be filled columns first, then rows, would be the most logical way of doing it, so I can't believe that the .NET guys haven't allowed for this possibility.

Anyway, my legend is set with the following properties:

Legend legend = new Legend("Legend1");
legend.LegendItemOrder = LegendItemOrder.ReversedSeriesOrder;
legend.Alignment = StringAlignment.Center;
legend.Docking = Docking.Bottom;
legend.LegendStyle = LegendStyle.Table;
legend.TableStyle = LegendTableStyle.Wide;
legend.IsEquallySpacedItems = true;
legend.AutoFitMinFontSize = 6;
legend.IsTextAutoFit = true;
chart.Legends.Add(legend);

Can anyone please help me?

Thanks, Nick
AnswerRe: Chart Control Legend Item Ordering Pin
jkirkerx17-Nov-14 13:38
professionaljkirkerx17-Nov-14 13:38 
Questioninfragistics numeric editor+ alllow user to input the value max Pin
srinandan..16-Sep-14 21:00
Membersrinandan..16-Sep-14 21:00 
AnswerRe: infragistics numeric editor+ alllow user to input the value max Pin
Eddy Vluggen19-Sep-14 8:19
professionalEddy Vluggen19-Sep-14 8:19 
Questionsearch or filter treenode display based on text input from user Pin
Member 110597994-Sep-14 13:27
MemberMember 110597994-Sep-14 13:27 
AnswerRe: search or filter treenode display based on text input from user Pin
Richard MacCutchan4-Sep-14 21:17
mveRichard MacCutchan4-Sep-14 21:17 
GeneralRe: search or filter treenode display based on text input from user Pin
Member 110597995-Sep-14 2:46
MemberMember 110597995-Sep-14 2:46 
GeneralRe: search or filter treenode display based on text input from user Pin
Richard MacCutchan5-Sep-14 3:26
mveRichard MacCutchan5-Sep-14 3:26 
GeneralRe: search or filter treenode display based on text input from user Pin
Member 110597995-Sep-14 10:50
MemberMember 110597995-Sep-14 10:50 
GeneralRe: search or filter treenode display based on text input from user Pin
Richard MacCutchan5-Sep-14 21:08
mveRichard MacCutchan5-Sep-14 21:08 
GeneralRe: search or filter treenode display based on text input from user Pin
Member 110597996-Sep-14 4:09
MemberMember 110597996-Sep-14 4:09 
GeneralRe: search or filter treenode display based on text input from user Pin
Richard MacCutchan6-Sep-14 5:02
mveRichard MacCutchan6-Sep-14 5:02 
GeneralRe: search or filter treenode display based on text input from user Pin
Member 110597998-Sep-14 4:13
MemberMember 110597998-Sep-14 4:13 
GeneralRe: search or filter treenode display based on text input from user Pin
Richard MacCutchan8-Sep-14 5:01
mveRichard MacCutchan8-Sep-14 5:01 
AnswerRe: search or filter treenode display based on text input from user Pin
Eddy Vluggen5-Sep-14 2:57
professionalEddy Vluggen5-Sep-14 2:57 
GeneralRe: search or filter treenode display based on text input from user Pin
Member 110597995-Sep-14 10:47
MemberMember 110597995-Sep-14 10:47 
AnswerRe: search or filter treenode display based on text input from user Pin
Eddy Vluggen8-Sep-14 8:35
professionalEddy Vluggen8-Sep-14 8:35 
GeneralRe: search or filter treenode display based on text input from user Pin
Eric P Schneider28-Jan-19 11:03
MemberEric P Schneider28-Jan-19 11:03 

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.