MeghaHS Posted November 4, 2016 Posted November 4, 2016 Hello, I need to edit a listview which has many edit controls with same ClassNameNN and ControlID .I need to edit an edit control on the third row,Since attributes is same the modications I made is affected in the row of edit control.I used below commands but could not get the desired results.How do I solve this?? Control List View Custom Indicator - TC.Adaptive.Candlesticks Input parameters SysListView321 Select 2 Control Click Custom Indicator - TC.Adaptive.Candlesticks Input parameters [CLASS:Edit; INSTANCE:1] LEFT 2 Control Command Custom Indicator - TC.Adaptive.Candlesticks Input parameters [CLASS:Edit; INSTANCE:1] Editpaste Italian Thanks In Advance Megha
funkey Posted November 4, 2016 Posted November 4, 2016 I don't think a listview has many edit controls with same ClassNameNN and ControlID. I think it is always the same control that is used to edit the cells. It's just moved. I'm quite sure it is not possible to have controls with the same ClassNameNN and ControlID. Programming today is a race between software engineers striving tobuild bigger and better idiot-proof programs, and the Universetrying to produce bigger and better idiots.So far, the Universe is winning.
Bowmore Posted November 4, 2016 Posted November 4, 2016 funkey is correct listview controls don't have a built in ability to edit cells, when this functionality is required programmers use a seperate edit control. When a users clicks on a cell the the edit control is enabled and placed to cover the cell that was clicked, the data from the underlying cell is copied to the edit control for the user to modify and then written back to the underlying listview cell. To the uses it appears that every cell is an edit control. So you should be fine with activating a listview cell and then using the same edit control ID. "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning."- Rick Cook
MeghaHS Posted November 7, 2016 Author Posted November 7, 2016 (edited) Thanks for the Reply Bowmore...How do I activate particular List view cell...?? Edited November 7, 2016 by MeghaHS
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now