Home - Forums-.NET - FlyGrid.Net (Windows Forms) - ellipsis/link at the end of a cell

FlyGrid.Net (Windows Forms)

.NET Datagrid - Fast, highly customizable, industry standards .NET data grid control for WinForms

This forum related to following products: FlyGrid.Net

ellipsis/link at the end of a cell
Link Posted: 15-Oct-2006 09:29
I have what I think is probably a pretty basic question. I have a flygrid with 3 columns in it. THe second column is simple textbox. I would like to add the elipsis to the end of the cell and if someone clicks that it should open up a new window (which will contain a wysiwyg textbox but thats a whole other issue). I played around with it a little bit, searched the web but was not able to find anything, thought maybe you guys could help. Thanks in advance.
Link Posted: 16-Oct-2006 00:05
As I have understood - you want to add ellpisis button to the column.
To add ellipsis button to the column's cells simply change Column.EditorStyle property to the EditorStyle.Dialog.
Link Posted: 16-Oct-2006 11:50
I tried changing the editorstyle to dialog but I got an arrow instead of elipsis. This doesn't make any different though, but the arrow is greyed out, where to I set the action associated with this arror (or the elipsis) ?
Link Posted: 16-Oct-2006 12:38
What column class you're using?
May be this class doesn't support Dialog button.
Link Posted: 16-Oct-2006 13:17
How can I figure out what the class is? I added the column via the 'column collection editor', all the values are at default as far as I know except for editorstyle which I set to dialog.

EDIT: I dont know if it makes a big difference but I am using visual studio 03, vb.net
Link Posted: 16-Oct-2006 13:37
Below is a screenshot of column with EditorStyle = EditorStyle.Dialog:
Link Posted: 16-Oct-2006 19:26
Mine looks like this:



I also have the following in the form_load sub:

               Dim col As Column
        For Each col In Me.FlyGrid1.Columns.Items
            Dim dc As DataColumn = New DataColumn(col.FieldName)
            If (col.FieldName = \"DateTimeColumn4\") Then
                dc.DataType = System.Type.GetType(\"System.DateTime\")
            End If
            If (col.FieldName = \"Comments\") Then
                col.EditorStyle = EditorStyle.Dialog
            End If
            dataTable.Columns.Add(dc)
        Next
and I selected 'dialog' for editorstyle in the column collection editor. I dont care if its elipsis or a little arrow but somehow I need a link at the end of the cell that opens up a new form.
Link Posted: 17-Oct-2006 07:28
I tried changing the code above to make the column a dropdown instead of dialog and it worked. So I know the code is being executed properly but how come I get a greyed out arrow instead of the elipsis, and how do I make this do something when clicked?
Link Posted: 17-Oct-2006 09:09
Thanks for your screenshot, this problem occurs when applications is themed.
This problem is fixed, now dialog button displayed correctly:

Nearest update of FlyGrid - the end of this week.
and how do I make this do something when clicked?

use FlyGrid.DialogButtonClick event handler to show your dialog when dialog button is clicked.
Link Posted: 17-Oct-2006 10:43
As a temporary work-around can I make it so if someone clicks on the cell it opens up another form?