Using ToolTip I am displaying data point values on a line chart. The ToolTip display was activated with the following code:
Chart1.Series("Wtr").ToolTip = "#VALY"
This works as it should but I need to perform some math on #VALY" before ToolTip displays it. Basically, I need to divide it by a fixed factor to reduce the value to a percentage (e.g. #VALY / fixed factor.) I've tried assigning #VALY to a variable but I can't get the value of #VALY.
I also tried using the ToolTip Popup event but it doesn't fire when hovering over a chart series. ToolTip Keywords might be the solution but I can't find a way to assign a fixed value to a Keyword.
I've spent several weeks researching and playing with this but haven't hit on a solution as yet. Any help would be greatly appreciated.
This is a Windows 7 / VB.Net 2012 platform.
In case anyone else needs to know, i finally solved the problem myself. I created a dataview on my datatable and used it to databind the columns in the datatable. I was then able to select any column I wanted for my tooltip. In this case I wanted to display "WtrRaw" when hovering over a "Wtr" data point.
prdView = New Dataview(dtProd)
ChartProd.Series("Wtr").Points.DataBind(prdView, "X-Axis", "Wtr", ToolTip = "WtrRaw")
Related
I am working with crystal report in visual studio , the report contains data from the data base . the Problem is that the field object height in the report it is fine for short text length but for long text some characters that exceed the field object height will be hidden.
I have been used can grow property by checking it in the format object window but it didn't work the section height didn't increase automatically to wrap all text .
please how can i solve this problem ? any help would be appreciated
thanks in advance
In crystal reports, create a new formula. (it can be done by right-mouse clicking on Formular Fields in the "Field Explorer". In this formula field, drag and drop the notes field so the formula would look something like this {Command.Notes} or {TableName.Notes}. Then back in your report, right mouse click in the Details section and select Insert --> Text Object. Then drag and drop that newly created Formula field into the newly created blank text object.
I have an expression Sum of Cycle Times in a bar chart. I want to display the equation used to calculate the value of the expression when I hover over the bar in the chart. Right now, the pop-up box displays the dimension value and the expression value. Can I edit what is displayed in the pop-up?
You can create a new expression with your expression formula in quotes and set it to 'Text as Pop-up'. This is a common practice in Qlikview charts as a means to get custom pop-up text. It's still not a perfect solution, but it will take care of your problem.
I ' ve a combobox with too long multiple Items . There is any method to set a horizontal scroll in combobox or set a multiline properties for each item ?
Hi Mattia,
There are a couple of methods that are usable as well as effective for this problem you are having, here is the concept that I've created that you may implement in your project;
Original text: C:\path1\path2\path3\path4\file.exe
Combo Box text: C:\path1\p...file.txt
To do this you will 1st have to specify how many characters you want to shown in the start of the text (1st 5 or so) then you must specify how much you would like to leave off at the end (last 6 or so).
I realize this causes a problem, "I wont be able to see the full path!", however adding a 2nd form or a msgbox to display the full text which should initiate the 1st 2-4 secs of display time, this should not be a challenge nor a problem and will make you look like a Pro!
I hope this helped you with your problem or motivated you to go over and beyond!
I am a student programmer who is learning VB. I am trying to make a telephone book type project in VB (Windows Forms). In my project I am using an unbound Data Grid View control. Below the Data Grid View, I have some textboxes which will display the values of the selected row. On the form load event, my program accesses a file and populates the Data Grid View control with values from the file. This works perfectly, but the problem I get is when I use the code:
txtLast.Text = dgvMain.Rows.Item(0).Cells(0).Value
to populate the textbox called txtLast with the value at the specified cell, the textbox doesn't display the value. The program doesn't crash or hang, it simply won't display the value and when I try to edit the textbox, it acts as if the textbox is empty. I have tried using
txtLast.Text = dgvMain.Rows.Item(0).Cells(0).Value.ToString()
as well as trying to refresh my Data Grid View control and the textbox. Nothing has worked so far. When I use a breakpoint to see whether that line of code is executed, the autos window shows me that the line of code is executed and that it sees the value of the specified cell as "Smith". However, when I press F11 to step into the next line, the textbox.text property remains as "" instead of changing to "Smith".
Note: when I manually specify the text through the code (i.e. txtLast.Text = "Test") it will show that text. Also, this problem is not with just one textbox, it is with every textbox that I use (I have 5 textboxes showing various values from the specified row). The weird thing is that out of the 5 textboxes, one of them, the masked textbox which shows the phone number works perfectly with the same line of code. (note it is not a problem only affecting regular textboxes as I have tried using both regular textboxes and masked textboxes, both produce the same problem except for the phone textbox).
Also, I would prefer to keep the Data grid view unbound (not connected to a database) and the textboxes unbound (not connected to the data grid view as a data source) because while browsing the internet I have seen people suggesting to bind the textbox or data grid view, however I do not understand how to do so, and I believe that this can be done without binding to a data source.
Any help is appreciated in trying to figure out why the text doesn't change. Let me know if you need any other info or if part of my explanation is unclear.
Thanks!
I am bringing in data from SQL that is to be displayed in a multi band ultragrid. This works great. It does what it is supposed to in this regard; however, if I try to select a row other than the first one, in any band of the bands, it freezes the program.
When the grid is loaded, the first row seems to be active (text is bold), so I tried doing an update on the active row. This got rid of the active row, but didn't fix the problem.
Thank you in advance for any help!
Are you using BindingList<> as your data source? Try converting to List<>.If you have to use BindingList<> then set the SyncWithCurrencyManager property on ultragrid to false. This tells the grid not to synchronize the current row with the current position of the CurrencyManager