Private Sub PosNegDoubleTextBox_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown ' ' some code.... ' 'End SubCType(Me.barProgress.GetChildAt(0).GetChildAt(1), Telerik.WinControls.Primitives.ProgressBarPrimitive).BackColor2 = System.Drawing.Color.FromArgb(CType(CType(153, Byte), Integer), CType(CType(225, Byte), Integer), CType(CType(238, Byte), Integer))CType(Me.barProgress.GetChildAt(0).GetChildAt(1), Telerik.WinControls.Primitives.ProgressBarPrimitive).BackColor3 = System.Drawing.Color.FromArgb(CType(CType(4, Byte), Integer), CType(CType(187, Byte), Integer), CType(CType(208, Byte), Integer))CType(Me.barProgress.GetChildAt(0).GetChildAt(1), Telerik.WinControls.Primitives.ProgressBarPrimitive).BackColor4 = System.Drawing.Color.FromArgb(CType(CType(4, Byte), Integer), CType(CType(159, Byte), Integer), CType(CType(208, Byte), Integer))CType(Me.barProgress.GetChildAt(0).GetChildAt(1), Telerik.WinControls.Primitives.ProgressBarPrimitive).BackColor = System.Drawing.Color.FromArgb(CType(CType(153, Byte), Integer), CType(CType(219, Byte), Integer), CType(CType(238, Byte), Integer))
Hi Guys,
I'm hoping that someone can help me with this.
I have a Main business Object that i display on the property grid and that works fine. However I would like to add a business object collection and have it display as a property on the Mani Business Object, so that when the Main business Object is loaded on to the property grid the collection displays as a child.
This works fine when i use a standard windows property grid. So i was wondering if i missed something?
Your help in this will be greatly appreciated.
regards
Bongani
public class DynamicDecimalColumn : GridViewDecimalColumn, IDynamicColumn { public DynamicDecimalColumn(string fieldName, string attributeName) : base(fieldName) { AttributeName = attributeName; DataType = typeof(decimal); } protected override void Initialize() { base.Initialize(); } public string AttributeName { get; set; } public override Type GetCellType(GridViewRowInfo row) { if (row is GridViewDataRowInfo) { return typeof(DynamicPropertyCellElement); } return base.GetCellType(row); } }DynamicDecimalColumn column = new DynamicDecimalColumn("OwnerCode" ); column.DecimalPlaces = 0 column.Name = "OwnerCode"; column.HeaderText = "OwnerCode"; _gridViewNetSegments.MasterTemplate.Columns.Add(column);My application is very concerned with **structure** while the RichTextBox is very concerned with retaining **style**. Whle addressing my point 1 above solves all my concerns points 2 - 5 I believe would be of value to other implementers.
I'm going to have to fall back to using the web based Editor (which presents its own set of restrictions) but I will anxiously be watching developments in the RichTextBox as I believe that once finalized it will be an excellent product.