Search results for query: *

  1. dv2020

    Resolved Refresh Winform Crystal Report Simultaneously

    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...
  2. dv2020

    Resolved Refresh Winform Crystal Report Simultaneously

    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 {...
  3. dv2020

    Slow Formatting of Cells DataGridView

    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 "...
  4. dv2020

    Slow Formatting of Cells DataGridView

    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 |...
  5. dv2020

    Slow Formatting of Cells DataGridView

    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.
  6. dv2020

    Slow Formatting of Cells DataGridView

    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?
  7. dv2020

    Slow Formatting of Cells DataGridView

    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 =...
  8. dv2020

    Resolved Datagridview Lookup value from one cell in specific column and display in another?

    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; }...
  9. dv2020

    Resolved Datagridview Lookup value from one cell in specific column and display in another?

    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"...
  10. dv2020

    Resolved Datagridview Lookup value from one cell in specific column and display in another?

    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...
  11. dv2020

    Resolved Datagridview Lookup value from one cell in specific column and display in another?

    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)...
  12. dv2020

    Question Simulating Screen Resolutions - Testing Application

    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...
  13. dv2020

    Resolved Add item inside a Split container and fill

    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...
  14. dv2020

    Resolved Add item inside a Split container and 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...
  15. dv2020

    Bold Cell based on value in data grid

    Thank you, that makes sense and worked perfectly. Cheers David
  16. dv2020

    Bold Cell based on value in data grid

    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 =...
  17. dv2020

    Question GetDirectories Sort by Filename

    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...
  18. dv2020

    Resolved How to change currency,format of a column/cell in dynamically changing data grid

    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...
  19. dv2020

    Combine all *.dll into a folder instead of main directory of program

    Thanks John, That all worked. Much appreciated.
  20. dv2020

    Resolved How to change currency,format of a column/cell in dynamically changing data grid

    Hello Thanks for replying. Ill come back with a more direct question and example. Feel free to delete this post as it useless in its current form.
Back
Top Bottom