R
Randall Smallwood
Hi All,
Has anyone out there used HideEditBox, successfully? I am writing
developing in VB .NET (VS .NET 2002) for the desktop. I have a datagrid
which is ReadOnly. When you click in a cell, the text edit box appears
which looks bad and distracts the user, AND it captures DoubleClick which I
want to handle at the DataGrid level. I have set up a TableStyle and
GridColumnStyles - all ReadOnly. I have created a new class for the
columns, which inherits DataGridTextBoxColumn, and have called HideEditBox
in the constructor. It does absolutely nothing. Here is the class:
Public Class DataGridPassiveColumn
Inherits DataGridTextBoxColumn
Public Sub New()
Me.HideEditBox()
Me.Alignment = HorizontalAlignment.Right
End Sub
End Class
.... I put the Alignment in there just to get some feedback so I know my
class is working (I have to admit I'm new at this). The Alignment works,
the HideEditBox does not.
Can alybody help? I would appreciate it vey much.
Randall Smallwood.
Has anyone out there used HideEditBox, successfully? I am writing
developing in VB .NET (VS .NET 2002) for the desktop. I have a datagrid
which is ReadOnly. When you click in a cell, the text edit box appears
which looks bad and distracts the user, AND it captures DoubleClick which I
want to handle at the DataGrid level. I have set up a TableStyle and
GridColumnStyles - all ReadOnly. I have created a new class for the
columns, which inherits DataGridTextBoxColumn, and have called HideEditBox
in the constructor. It does absolutely nothing. Here is the class:
Public Class DataGridPassiveColumn
Inherits DataGridTextBoxColumn
Public Sub New()
Me.HideEditBox()
Me.Alignment = HorizontalAlignment.Right
End Sub
End Class
.... I put the Alignment in there just to get some feedback so I know my
class is working (I have to admit I'm new at this). The Alignment works,
the HideEditBox does not.
Can alybody help? I would appreciate it vey much.
Randall Smallwood.