Topic: ListView Control
Example-1:
Note: After adding List View Control choose details inside it.
Result: After filling the text boxes and pressing add button, the entered values will be in the list.
Example-2: Add ContextMenuStrip from Toolbox.
Edit menu inside the context menu strip as “ Select a Text”.
Go to the properties panel of ListView and select ContextMenuStrip from none to ContextMenuStrip1
Result:
Example-3: After changing multi select from false to true in the properties of list view, we can select multiple items at once.
To select many texts first of all we change multiselect from false to true in the properties panel of list view.
Result:
Example-4: we can remove selected row from the list.
For that first of all we write some function name inside the context menu strip.
And then double click on that.
Example-5: We can remove all information at once without selecting text.
Example-6: We can use check boxes for every row in the list view by changing checkboxes from false to true in the property of list view.
Example-7:
Result: After checking any information row in the list view and clicking Remove button, we can remove that information row from the list view at all.
Переглядів: 206 |