no my problem was not solved, but i it seem to be on bug on microsoft side in the control
s at System.Windows.Forms.DataGridView.ComputeVisibleColumns()
at System.Windows.Forms.DataGridView.PerformLayoutPrivate(Boolean useRowShortcut, Boolean computeVisibleRows, Boolean invalidInAdjustFillingColumns, Boolean repositionEditingControl)
at System.Windows.Forms.DataGridView.ResetUIState(Boolean useRowShortcut, Boolean computeVisibleRows)
at System.Windows.Forms.DataGridViewRowCollection.OnCollectionChanged_PreNotification(CollectionChangeAction cca, Int32 rowIndex, Int32 rowCount, DataGridViewRow& dataGridViewRow, Boolean changeIsInsertion)
at System.Windows.Forms.DataGridViewRowCollection.OnCollectionChanged(CollectionChangeEventArgs e, Int32 rowIndex, Int32 rowCount, Boolean changeIsDeletion, Boolean changeIsInsertion, Boolean recreateNewRow, Point newCurrentCell)
at System.Windows.Forms.DataGridViewRowCollection.ClearInternal(Boolean recreateNewRow)
at System.Windows.Forms.DataGridView.RefreshRows(Boolean scrollIntoView)
at System.Windows.Forms.DataGridView.DataGridViewDataConnection.ProcessListChanged(ListChangedEventArgs e)
at System.Windows.Forms.DataGridView.DataGridViewDataConnection.currencyManager_ListChanged(Object sender, ListChangedEventArgs e)
at System.Windows.Forms.CurrencyManager.OnListChanged(ListChangedEventArgs e)
at System.Windows.Forms.CurrencyManager.List_ListChanged(Object sender, ListChangedEventArgs e)
at System.Data.DataView.OnListChanged(ListChangedEventArgs e)
at System.Data.Listeners`1.Notify[T1,T2,T3](T1 arg1, T2 arg2, T3 arg3, Action`4 action)
at System.Data.Index.OnListChanged(ListChangedEventArgs e)
at System.Data.DataTable.ResetInternalIndexes(DataColumn column)
at System.Data.DataTable.Clear(Boolean clearAll)
at MCAP.MaintenanceDataSetTableAdapters.WebsitePageDownloadTableAdapter.FillByWhereClause(WebsitePageDownloadDataTable dataTable, String whereClause) in C:\Users\mmarshall.MTMOBAY\Desktop\Mark\MCAP\DataSet\MaintenanceDataSet.Designer.vb:line 35940
at MCAP.UI.Processors.Maintenance.LoadFilteredWebsite(String filterCondition) in C:\Users\mmarshall.MTMOBAY\Desktop\Mark\MCAP\UIProcess\Maintenance.vb:line 6328
This is not helping much, we're talking about different things.
If you can fix the size of the column in the grid in where it is displayed to 100 pixels, then you can still enter long strings. It would prove whether or not the observed behaviour is caused by the internal resizing, or somewhere else.
If fixing the width helps, then you'll need to look for other alternatives or find a fix. If fixing the width does not help, then the error is occurring somewhere else.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
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
as one might expect, the legend looks like this:
A C D
Then when I add the next series I get:
A C E
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:
I don't know the complexity of your chart, but I do know that the order in which you load the series to the chart is important, and what type of chart you select as well such as a series chart with plot lines.
I guess take a pie chart, now you have a legend to explain the pieces of the pie, there really is no order to it. Unless the largest pieces of the pie down to the smallest are the order.
I've always had to experiment for hours to get them right, and after 100's of them, narrow down which charts to stay away from.
I'm not sure if you can do multiple legends, and display them in rows or columns.
Not the answer you want, but your going have to take to pencil and paper and record your results based on what you get, or try the Microsoft Forum for Chart Control at asp.net
I am very new to windows form and facing a problem with infragistics numeric editor. I need to allow user to input the value max "100.00%" or below (like 45.78, 99.00, 99.99). I am setting following propety for this:
Are you saying you don't know how to handle text input, and use the content to change the focus of your TreeView?
As a newbie I'm not sure what your response means. I want the display to scroll based on user input in a textbox rather than using the scrollbar and mouse. If that's what you mean by your response, than yes, I don't know how.
I am still not sure what you are getting at. A textbox is used for text input, and your program can capture that text as it is entered or when it is complete. It then makes use of that text in whatever way necessary. Scrolling of a view is a separate issue and would require some code to be written to move a certain tree item to the top of the form (or area of the form). The suggestion at http://stackoverflow.com/questions/457932/c-sharp-how-do-i-scroll-selected-treeview-node-into-view[^] should help you to figure out how to ensure the selected node is visible.
Okay. I got my answer from a respondent on MSDN. Since I'm in the process of learning the language, syntax, and nuances of Visual C# this is the kind of answer struggling people like me hope to receive from FORUMS like this. There is no way I would have known to do this or "Write It" without guidance.
According to your description, you'd like to find the specified treenode from the TreeView.
I wrote a sample for you, Here are my steps.
Step1: create a form with a textbox, a button and a treeview.
Step2: set the button click event handler like this.
List<treenode> tnlist = new List<treenode>();//collect the result nodes
int count = -1;//used to record the index of the selectnode
Unfortunately you did not make it clear that you did not know the fundamentals of writing a WinForms application. Had you done so you would have received somewhat different responses. Although these forums are designed to help people with specific questions (see http://www.codeproject.com/Messages/3137519/Forum-Guidelines-PLEASE-READ.aspx[^]), rather than teach them how to program. If you want to learn from the beginning then there are many websites that offer beginners' tutorials, including here at CodeProject; but you are expected to go and find them for yourself.
Last Visit: 31-Dec-99 18:00 Last Update: 13-Aug-22 7:35