Hi
Thanks for replying. Its not designed for intensive work, basically have a dashboard on a timer and want the 3 x dashboards to refresh at the same time as they all hit different underlying queries in the database.
Understanding from what you have explained, I need to create each...
Hi All,
I'm trying to have all three of my crystal reports refresh at the same time. I am using the code below but receiving an error.
//Allowing three task to execute at a time
ParallelOptions parallelOptions = new ParallelOptions
{...
Hello,
The datagrid is already loaded earlier, only once. Sorry should have made that clear.
The above code runs only when a button is clicked.
I was referring to "loads" as, once the Button is clicked to run the above code, it takes 0.001 seconds to apply without the "...
Only 10 rows of data.
If i remove " row.Cells[speedcol].Style.Font = boldFont;", loads in 0.001, add the line it, takes 1.2 seconds...
Have updated the code below.
var currentFont = datagridProSpeedMap.DefaultCellStyle.Font;
var boldFont = new Font(currentFont, currentFont.Style |...
Hello,
thanks for the reply, unfortunately it has made no improvement to the loading speed. If I add the line "row.Cells[speedcol].Style.Font = boldFont;" then loading speed is very slow, when comment out that line, the loading is very fast.
Thanks for replying,
I'm trying to only set the value in that specific cell to Bold, and re-use the existing Font and Size? " var currentFont = datagridProSpeedMap.DefaultCellStyle.Font;" is outside the loop?
Hi All,
Trying to understand why formatting my datagridview is so slow with the code below.
Is there a more optimize way to perform the below?
var currentFont = datagridProSpeedMap.DefaultCellStyle.Font;
string speedcol = "Speed";
decimal speedavg = 10;
decimal speedmax = 18;
for (int i =...
Thank you, updated the code and now working.
if (row.Cells["MAP_SPEED"].Value.ToString() == "LEAD")
{
row.Cells["RSS_SPEED"].Value = row.Cells["JRL"].Value;
row.Cells["HSS_SPEED"].Value = row.Cells["HRL"].Value;
}...
Hello
Attached is the raw data, the percentages are in decimal format. e.g 0.11 is 11%.
When i first load the data grid, the follow code is used to displays the % which works.
datagridProSpeedMap.Columns["RSS_SPEED"].DefaultCellStyle.Format = "p0"...
Hi jmcilhinney,
I made a image with same data of the data grid, see attachment.
Below is the code.
When the Data grid is finished loaded, I also try to call proSpeedMapTableStats(); altough it does not work, i believe because the user is not interacting with the grid
When i call...
Hi All,
Trying to adjust my code to
a) When a user selects a value from the combo box in the data grid, it copies a value from a different column into another
b) When the data grid refreshes, looks up each value and copies the look up values from a different column into another (for each row)...
Hi All,
Interesting one here.
Background:
Have a Winform application which works on all standard screen resolutions. Came across a laptop (new model DELL) which was is a high end model and is able to set to a super high resolution (3840 x 2160), which by default windows sets the zoom/DPi to...
Turns out, when using a crystal report I need to add it after refreshing the report. See below. Hopefully helps anyone else who comes across the issue using crystal reports and docking.
crystalReportViewer1.RefreshReport();
crystalReportViewer1.Dock = DockStyle.Fill...
Hi,
I'm trying to add an item inside a split panel, then set the dock to fill. I have tried both methods below but not having any luck.
Tried setting the dock to fill, the moving it into the container panel.
crystalReportViewer1.Dock = DockStyle.Fill...
Hi All,
I have this code below which works well. I'm trying to modify the code so it only bolds the value, and not change the font to "Arial" or the size.
if (cellVal > 0 && e.ColumnIndex > 15 && e.ColumnIndex < 27)
{ row.Cells[e.ColumnIndex].Style.BackColor =...
Hi All
I'm using Directory.GetFiles to get a list of files, and populate the datagrid. Code is below. Everything is working, but I'm having trouble trying to get Directory.GetFiles to retrieve the list in filename or descending.
How anyone any idea if its possible, and if not via...
Hi All,
For anyone else who comes across this post. I coded this today, which worked for my DataGridView which is dynamicaly loaded from a MySQL source.
When a new column is added, this event checks the column and then based on the heading it assigns the currency, or percentage formatting...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.