public class MtxGridView : DataGridView
Visual control for simple viewing/editing of vector or matrix values.
Use this control to view and edit matrix or vector values. Simply drop control on the form and connect it to vector or matrix object by setting it's DataObject property.
Examples
csharp
using Dew.Math;
using Dew.Math.Controls;
namespace Dew.Examples
{
private void Example(MtxGridView mgv)
{
Matrix m = new Matrix(10,3);
m.RandGauss();
mgv.ReadOnly = true;
mgv.ShowObjectInfo = true;
mgv.DataObject = m;
}
}
Properties
| Name | Type | Description |
|---|---|---|
| AutoSizeCols | Boolean | Sets the custom column width |
| CustomColWidth | Int32 | Sets the custom column width |
| DataObject | TMtxVecBase | MtxGridView Datasource Object. |
| IsInteger | Boolean | Returns True, if DataObject is TMtxInt or TVecInt type. |
| IsMatrix | Boolean | Returns True, if DataObject is TMtx or TMtxInt type. |
| IsVector | Boolean | Returns True, if DataObject is TVec or TVecInt type. |
| numberFormat | String | Defines number formatting. For examaple "0.####" |
| ObjectInfoText | String | Object info text, displayed in top-left cell. |
| ShowObjectInfo | Boolean | Show object info in top-left cell. |
| ShowRowColIndexes | Boolean | Show/hide row and column indexes at the same time. |
| SplitCplx | Boolean | Split complex number into real and imaginary part. |
Methods
| Name | Description |
|---|---|
| ctor | MtxGridView constructor. |
| DataObjectChanged | Check if Dew.Math.Controls.MtxGridView.DataObject has changed. |
| UpdateGrid | Populates MtxGridView with new values. |