none
how to Readonly a cell in Janus GridEX1?

    General discussion

  • hi dear

    i use a  Janus GridEX1 and that has two Columns

    see my codes

     Private Sub GridEX1_EditingCell(sender As Object, e As Janus.Windows.GridEX.EditingCellEventArgs) Handles GridEX1.EditingCell
    
    
            If GridEX1.CurrentColumn.Index = 0 Then
                If GridEX1.CurrentRow.Cells(0).Value > 0 Then
                    GridEX1.CurrentRow.Cells(0).EditType = EditType.TextBox
                    GridEX1.CurrentRow.Cells(1).EditType = EditType.NoEdit
                End If
            ElseIf GridEX1.CurrentColumn.Index = 1 Then
                If GridEX1.CurrentRow.Cells(1).Value > 0 Then
                    GridEX1.CurrentRow.Cells(1).EditType = EditType.TextBox
                    GridEX1.CurrentRow.Cells(0).EditType = EditType.NoEdit
                End If
            End If
    end sub
    
    

    but do not work  properly this codes

    i want  when user   is  typing number > 0  in   Column  index  0 , Column 1 should be  read only ...

    thanks


    Name of Allah, Most Gracious, Most Merciful and He created the human

    Thursday, April 19, 2012 3:29 PM

All replies

  • Hi sh2013,

    Welcome to the MSDN forum.

    This is a VB.Net forum. The Janus GridEX1 is a 3 third party software which is out of scope in this forum. So I will suggest you to connect the official website of Janus to ask for help: http://www.janusys.com/controls/

    Sorry for any inconvenience and have a nice day.


    Mark Liu-lxf [MSFT]
    MSDN Community Support | Feedback to us

    Monday, April 23, 2012 2:25 AM
    Moderator