Sign in to follow this  
Followers 0
MeghaHS

Two Controls With Same Control Id and ClassNameNN

4 posts in this topic

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

Share this post


Link to post
Share on other sites



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 to
build bigger and better idiot-proof programs, and the Universe
trying to produce bigger and better idiots.
So far, the Universe is winning.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Thanks for the Reply Bowmore...How do I activate particular List view cell...??

Edited by MeghaHS

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0