Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Here is a useful, very simple indicator code base that is "almost finished".
It will pop up a window and fill a DataGridView with data. That DataGridView could be customized to hold any row/column data, with scrolling, sorting, hide/show rows, et cetera.
The problem I'm trying to solve is that the grid does not have a vertical scroll bar and I can't see all the data.
Also, I would like the grid to resize to fill the entire Form initially and then whenever the Form is resized. And, of course with horizontal and vertical scroll bars if needed.
Any C# gurus out there? The code base could have many different custom applications.
Thanks
Can you help answer these questions from other members on NexusFi?
For your information - the DataGridView has scrollbars always set to true but since it is setup to autosize it means there is no need for scrollbars since it just fills the space inside the form. That's why in this set up scrollbars on the MyForm are required. Test setting:
To see that scrolls on the grid will automatically show up.
was only a test for you to do - don't do 2 of those changes at the same time - I explained in my second post of why it behaves the way it does - it is not a bug. You either need to have scrollbars added to MyForm OR your grid needs to have fixed size (you could try setting Height and Width or Maximum Height and Maximum Width to have a compromise)
But first try changing only MyForm (my first post) and see if it suffices.
System.Data is part of the dot net framework (not ninjatrader) that needs to be installed on your computer...you would not load it individually, it is part of a dot net install
Right now I'm in the middle of an international move...so this is the best I can tell you at the moment
See
You have to add a reference of the assembly, and the .dll should be here:
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\vX.Y\System.Data.dll