DataListView: All text columns seem being locked

BenTam 1,801 Reputation points
2021-11-10T04:04:22.36+00:00

Dear All,

I fill the DataListView with the "DataListView.DataSource = ds" and find that all text columns seem being locked. I can't click into them using the mouse to make the cursor jumps into them. How to unlock them?

147948-cannotedit.gif

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
{count} votes

Answer accepted by question author
  1. Castorix31 91,531 Reputation points
    2021-11-13T13:34:33.3+00:00

    Change CellEditActivation

    For example :

     dataListView1.CellEditActivation = ObjectListView.CellEditActivateMode.DoubleClick;  
    

    149075-objectlistvieweditable.gif

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Viorel 126.1K Reputation points
    2021-11-12T08:13:52.93+00:00

    Try setting the FullRowSelect property of the control to True.

    0 comments No comments

  2. BenTam 1,801 Reputation points
    2021-11-13T04:00:32.297+00:00

    I try it and the row changes to blue. However the row can't be edited. Please help.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.