Syntax Editor with Infragistics UltraGrid

SyntaxEditor for Windows Forms Forum

Posted 11 years ago by Paresh Gheewala
Avatar
Hi,

One of my requirement is to use Infragistics with SyntaxEditor of Actipro's intellisense.
SyntaxEditor provides the user-friendly operations like intellisense to select the object type and so on.

1) I need to integrate it with Ultragrid. Can it be done ?
2) Can SyntaxEditor used as textbox within Ultragrid of Ingragistics (windows control)?

following is the code. .

[DefaultProperty("DataType")]
public class DataTypeEditTextBox : ActiproSoftware.SyntaxEditor.SyntaxEditor, IProvidesEmbeddableEditor
{

private EmbeddableImageRenderer imageRendererExternal = null;
#region IProvidesEmbeddableEditor Members

EmbeddableEditorBase IProvidesEmbeddableEditor.Editor
{
get { return this.ImageRendererExternal; }
}

#endregion
internal protected EmbeddableImageRenderer ImageRendererExternal
{
get
{
if (this.imageRendererExternal == null)
{
this.imageRendererExternal = new EmbeddableImageRenderer(); }

return this.imageRendererExternal;
}
}
}

currently I am just trying to use EmbeddableImageRenderer to support EmbeddableEditorBase IProvidesEmbeddableEditor.Editor property.

ultragrid1_InitializeLayout has following code.
{
...
e.Layout.Bands[0].Columns["DataType"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Edit;
...
e.Layout.Bands[0].Columns["DataType"].EditorControl = _syntaxEditor;
}

here

DataTypeEditTextBox _syntaxEditor = new DataTypeEditTextBox();

please respond if someone has tried this.


thanks
Paresh
}

Comments (1)

Posted 11 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Sorry we have never used their product. This would be more of a question for them since it seems you have to implement their interfaces to get it working.


Actipro Software Support

The latest build of this product (v2018.1 build 0341) was released 10 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.