Indicator -- Popup DataGridView - has bug - NinjaTrader Programming | futures io social day trading
futures io futures trading


Indicator -- Popup DataGridView - has bug
Updated: Views / Replies:605 / 9
Created: by vantojo Attachments:4

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

Indicator -- Popup DataGridView - has bug

  #1 (permalink)
Elite Member
Neuquen, Argentina
 
Futures Experience: Intermediate
Platform: Ninja
Favorite Futures: CL, TF, 6S, NG, sometimes GC
 
Posts: 195 since Jul 2012
Thanks: 25 given, 39 received

Indicator -- Popup DataGridView - has bug

Hi Guys,

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

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Attached Files
Register to download File Type: cs BMTGrid.cs (2.5 KB, 13 views)
Reply With Quote
The following user says Thank You to vantojo for this post:
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Elite Member
Wrocław, Poland
 
Futures Experience: Intermediate
Platform: NinjaTrader, Racket
Favorite Futures: Ockham's razor
 
gregid's Avatar
 
Posts: 651 since Aug 2009
Thanks: 321 given, 605 received



vantojo View Post
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.

In your OnStartUp add the following:
 
Code
MyForm.AutoScroll = true;
This will give you both scrollbars (if doesn't fit in the screen)

Reply With Quote
 
  #4 (permalink)
Elite Member
Wrocław, Poland
 
Futures Experience: Intermediate
Platform: NinjaTrader, Racket
Favorite Futures: Ockham's razor
 
gregid's Avatar
 
Posts: 651 since Aug 2009
Thanks: 321 given, 605 received

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:
 
Code
MyGrid.AutoSize = false;
To see that scrolls on the grid will automatically show up.

Reply With Quote
The following user says Thank You to gregid for this post:
 
  #5 (permalink)
Elite Member
Neuquen, Argentina
 
Futures Experience: Intermediate
Platform: Ninja
Favorite Futures: CL, TF, 6S, NG, sometimes GC
 
Posts: 195 since Jul 2012
Thanks: 25 given, 39 received

not right yet

OK, I made those two changes, but now get this....

I would like the grid to resize to use the entire form, and to have scroll bars....

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Reply With Quote
 
  #6 (permalink)
Elite Member
Wrocław, Poland
 
Futures Experience: Intermediate
Platform: NinjaTrader, Racket
Favorite Futures: Ockham's razor
 
gregid's Avatar
 
Posts: 651 since Aug 2009
Thanks: 321 given, 605 received

 
Code
MyGrid.AutoSize = false;
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.

Reply With Quote
The following user says Thank You to gregid for this post:
 
  #7 (permalink)
Elite Member
Neuquen, Argentina
 
Futures Experience: Intermediate
Platform: Ninja
Favorite Futures: CL, TF, 6S, NG, sometimes GC
 
Posts: 195 since Jul 2012
Thanks: 25 given, 39 received

gracias

Yes, using only MyForm.AutoScroll = true worked....

The scroll bars are on the form, which in this case works OK.

I was wanting the scroll bars on the Grid....but this will do for this particular use.

Thank you.

Reply With Quote
 
  #8 (permalink)
Elite Member
Sydney NSW Australia
 
Futures Experience: Intermediate
Platform: Ninjatrader 7 / MT4
Broker/Data: KINETICK
Favorite Futures: EUR/USD, AUS200(SPI)
 
Posts: 11 since May 2012
Thanks: 8 given, 4 received


vantojo View Post
Hi Guys,

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.

Thanks for sharing this Vantojo!

I am missing the system.data assembly. Do i just need to find the dll on the web and then reference it?

Thanks

Reply With Quote
 
  #9 (permalink)
Elite Member
Neuquen, Argentina
 
Futures Experience: Intermediate
Platform: Ninja
Favorite Futures: CL, TF, 6S, NG, sometimes GC
 
Posts: 195 since Jul 2012
Thanks: 25 given, 39 received


Marty087 View Post
Thanks for sharing this Vantojo!

I am missing the system.data assembly. Do i just need to find the dll on the web and then reference it?

Thanks

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

Reply With Quote
 
  #10 (permalink)
Administrator: Retired Backtester
 Vendor: speedytradingservers.com 
Rennes France
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: IB/Kinetick
Favorite Futures: Futures
 
sam028's Avatar
 
Posts: 3,366 since Jun 2009
Thanks: 3,574 given, 3,983 received



Marty087 View Post
Thanks for sharing this Vantojo!

I am missing the system.data assembly. Do i just need to find the dll on the web and then reference it?

Thanks

See
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

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

Success requires no deodorant! (Sun Tzu)
Reply With Quote
The following user says Thank You to sam028 for this post:

Reply



futures io > > > > > Indicator -- Popup DataGridView - has bug

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
MT4 Always On-Top Popup question Overview MetaQuotes MetaTrader MQL Programming 4 March 5th, 2013 03:11 AM
Multicharts Bug merzoil MultiCharts 1 January 9th, 2013 09:52 AM
Alert popup question in multimonitor setup Overview MetaTrader 7 October 9th, 2011 06:42 PM
MessageBox PopUp- Alert max-td NinjaTrader Programming 5 April 24th, 2010 10:29 AM


All times are GMT -4. The time now is 11:43 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts
Page generated 2017-12-17 in 0.13 seconds with 20 queries on phoenix via your IP 54.221.73.186