DataGridView ?

Questions about MultiCharts .NET and user contributed studies.
Fabrice
Posts: 182
Joined: 14 Jun 2011
Has thanked: 44 times
Been thanked: 30 times

DataGridView ?

Postby Fabrice » 20 Dec 2012

Is it possible to use this control ? For example, to display a datagrid somewhere on a CustomToolBar.
It seems that access to System.Windows.Controls namespace is not possible (in MC.NET 8.0).

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: DataGridView ?

Postby Henry MultiСharts » 21 Dec 2012

Hello Fabrice,

That is not possible to add a datagrid on a CustomToolBar, not enough space for it.
You need to create a form to add a datagrid - that will work.

Fabrice
Posts: 182
Joined: 14 Jun 2011
Has thanked: 44 times
Been thanked: 30 times

Re: DataGridView ?

Postby Fabrice » 21 Dec 2012

Hello Henry,

Thank for confirming the possibility to use datagrid. I am not yet familiar with the forms and controls. May you explain :

1) what object can contain the form
Is it possible to create a window and display the form/datagrid inside ?
This is why I thought to put the datagrid in the ToolBar object. But I would really prefer to have a grid like the Trade bar, or the Order & Position Tracker window.

2) how to use datagrid without "using System.Windows.Controls"
In MSDN, I understand that use of DataGrid requires "using System.Windows.Controls". The editor does not display Controls in System.Windows. So how to use DataGrid without this namespace ?

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: DataGridView ?

Postby Henry MultiСharts » 28 Dec 2012

Hello Fabrice,

1) Please refer to Form Class @ MSDN for more details.

2) You need to use "using System.Windows.Forms" namespace.
Then use DataGrid class. Control is a class as well.


Return to “MultiCharts .NET”