Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
295
Ultragrid readonly column
posted

I have 3 table and 3table contains same "Remark" name field. i bind that to ultragrid. Data displayed on grid, Now iwant "remark" column from table1 and table2 to be readonly. For table 3 "Remrks" column should be editable.

I ued

Grid.Ido_SetColumnToReadOnly("Remark")
But only one column got readonly. I want to find tablename for that so that i make that column readonly.
How to this
  • 469350
    Offline posted

    What is your Ido_SetColumnToReadOnly method doing?

    Here's what I would do:


        Private Sub UltraGrid1_InitializeLayout(ByVal sender As System.Object, ByVal e As Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs) Handles UltraGrid1.InitializeLayout
            Dim layout As UltraGridLayout = e.Layout
           
            For Each band As UltraGridBand In layout.Bands
                band.Columns("Remark").CellActivation = Activation.NoEdit
            Next


        End Sub