Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Property Grid
  New Posts New Posts RSS Feed - How do indices work?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How do indices work?

 Post Reply Post Reply
Author
Message
vschwarz View Drop Down
Newbie
Newbie


Joined: 09 July 2007
Location: Germany
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote vschwarz Quote  Post ReplyReply Direct Link To This Post Topic: How do indices work?
    Posted: 09 July 2007 at 8:57am
Hello,
 
I am trying the following:
Get the position of item1, remove item1, create item2 and insert it at item1's position.
 
This is part of my code:
int i = e.item.get_Index();
String c = e.item.get_Caption();
Object t = e.item.get_Tag();
e.item.Remove();
e.item.get_Parent().InsertChildItem(i, PropertyItemType.PropertyItemString, c, new String("")).set_Tag(t);
 
Using this code the new item always appears at another position (4 rows further down than were item1 was) - so I wonder how the indexing in the grid works...
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.