ListView
-
Can anyone tell me how to use this control? Help me please... public ListViewItem ( string[] items , System.Int32 imageIndex , System.Drawing.Color foreColor , System.Drawing.Color backColor , System.Drawing.Font font )
-
Can anyone tell me how to use this control? Help me please... public ListViewItem ( string[] items , System.Int32 imageIndex , System.Drawing.Color foreColor , System.Drawing.Color backColor , System.Drawing.Font font )
You'll really need to ask a more specific question. The ListView control can be used lots of ways. What exactly are you trying to do? Also, have you tried reading the ? documentation on MSDN[^]
-
You'll really need to ask a more specific question. The ListView control can be used lots of ways. What exactly are you trying to do? Also, have you tried reading the ? documentation on MSDN[^]
I want to do drag and drop in list view.But from what i seen, drag and drop can be done for string only. Can we do drag and drop other than string?
-
I want to do drag and drop in list view.But from what i seen, drag and drop can be done for string only. Can we do drag and drop other than string?
shamsteady wrote:
from what i seen, drag and drop can be done for string only
I'm not sure what you mean. ListView controls don't contain strings, they contain ListViewItem objects. It is fairly simple to implement Drag/Drop behavior in a ListView. You'll need to create a new control that inherits from ListView, then override the drag/drop event handlers. This article[^]appears to explain it (I didn't read it myself...). Good luck.
-
shamsteady wrote:
from what i seen, drag and drop can be done for string only
I'm not sure what you mean. ListView controls don't contain strings, they contain ListViewItem objects. It is fairly simple to implement Drag/Drop behavior in a ListView. You'll need to create a new control that inherits from ListView, then override the drag/drop event handlers. This article[^]appears to explain it (I didn't read it myself...). Good luck.
Ok thanks