in
Forums
Blogs
Files
Devexpress.Com
Client Center
Support Center
DevExpress Channel

ReadOnly for specific cell

Last post 11/19/2008 12:59 PM by Lukas Szumylo. 2 replies.
Page 1 of 1 (3 items)
Sort Posts:
Previous Next
  • 11/19/2008 5:17 AM

    ReadOnly for specific cell

    Hello

    Is there any way to set readonly or set allowedit = false for specific cell ?

    I have grid with options Add/Remove rows. I want to have readonly for rows loaded from DB and want modified data for new rows.

    Additionaly I want delete any rows when I set checkbox (repositoryItemCheckBox in last column) to true and click button Delete.

     

    For example :

     

                          colA                                    colB                                  colC                                      colD            colE (checkbox)

    Row 1            asdf                                    1234                                23,42                                     asdf                                              row from DB (columns colA, colB, colC, colD = AllowEdit false)

    Row 2            bsdf                                    4444                                63,42                                     aaaa                                             row from DB (columns colA, colB, colC, colD = AllowEdit false)

    Row 3            csdf                                    1111                                2,42                                       asdf                                              row from DB (columns colA, colB, colC, colD = AllowEdit false)

    Row 4            ddd                                    5555                                55,42                                      zdff                                               new row (columns colA, colB, colC, colD = AllowEdit true)

     

     

  • 11/19/2008 11:22 AM In reply to

    Re: ReadOnly for specific cell

    Handle the GridView's ShowingEditor method, test for your condition(s), and set e.Cancel = True if you want a cell to be read-only.

    http://www.logisticdynamics.com
  • 11/19/2008 12:59 PM In reply to

    Re: ReadOnly for specific cell

    Thank's. It's working :D

Page 1 of 1 (3 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED