I'm getting a null reference exception whenever it tries to add the packages titles info and other attributes but the attributes exist and the proper package is selected
Heres the code:
private void categorylist_listview_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
XmlDocument LoadPackageList = new...
How can I add a DateTime value along with 2 string values into a ListView?
I've tried...
String[] row = { Time.Value.ToString(), "Example Text", "Example Text"};
listView1.Items.AddRange(row);
but I get conversion errors.
...
How can I save a ListView with multicolumns into Settings.settings and load them upon running?
I'm trying to save a ListView with 3 columns. How can I do that?
...
I have both a ListBox (AlarmBox) and a ListView (listView1). They both save into 2 different Properties.Settings (AlarmList and AlarmList2).
Properties.Settings.Default.AlarmList.Remove(AlarmList.SelectedItem);
Properties.Settings.Default.AlarmList2.Remove(listView1.SelectedItems);
AlarmList.Items.RemoveAt(AlarmList.SelectedIndices[0]);...
Hello, everybody. My problem takes above one month of my time. Sorry for my English. I hope that i can explain the problem.
I have a trouble while Binding ListView Control to two ObservableCollection. It's must be a simple thing, but I can't resolve it.
My ListView has a Template like:
<ListView Name="lstClients" DataContext="myObsColl...
How do I check if a listView contains a DateTime or String?
I've tried
if (!listView1.Items.Contains(SetAlarm.Value))
But it cannot convert System.DateTime to System.Windows.Forms.ListViewItem.
...
i am new in CSS and have a problem with styling ListView Control in ItemTemplate tag.
my project language is rtl(persian) and i want to set the user image at the right and her/his infos to the left of the image.
but this is the result:
and here is the code for ListView:
<asp:ListView ID="NokListView" runat="server" DataSourceID="Obje...
Hey guys. I'm working in WinForms and trying to create a ComboBox control that hosts a ListView when it's dropped down. I'm using ToolStripDropDown and ToolStripControlHost to accomplish this.
My problem is that i cannot display selected ListView item in the ComboBox when i set its DropDownStyle to DropDownList. Obviously this behavior...
I am converting my company's VB6 program over to VB.net and I have hit another stupid little roadblock.
The old program had a ListView docked to the left side of the application screen. The user could place the cursor over the right portion of the ListView, the cursor would turn into the SizeWE arrows, then they could drag it, which wou...
I have a background thread listening to network, using a callback to process and store data. When it's ready (UI) controller gets a sync Notification, requests data, updates list and refreshes screen ...except screen doesn't update - until user scrolls the screen!
void aMessageArrivedCBack (const std::string text)
{
NSAutoreleasePoo...
How to properly handle listview's last column sizing in such a way that:
listview does not display the ugly and unused 'extra' column (see picture 1, or here for example)
the (actual) last column is stretched to fill the remaining space
the horizontal scrollbar is not shown
resizing in any direction leaves no artefacts (see below)
I'...
Hello all,
I have an application with a ListView ('SysListView32') control, from which I would like to extract data. The control has 4 columns, only textual data.
I have been playing around the following lines (found online somewhere):
VALUE_LENGTH = 256
bufferlength_int=struct.pack('i', VALUE_LENGTH)
count = win32gui.SendMessage(Targe...
If I have a ListView with two different kinds of items, enabled and disabled ones (meaning selectable and non-selectable), Android draws a small divider correctly between the enabled items, but not between disabled items. Instead it draws a transparent divider, which causes really bad design issues. This has already been discussed here (...
Is there a way to copy the text of the selected subitem from a ListView in .NET Winforms?
...
Hi guys,
My scenario:
-I'm using a list view in multiple choice mode to enable a user to
delete several items he/she has checked, at once.
-When the user clicks the delete button, i do the following:
-get positions of checked items using: myList.getCheckedItemPositions();
-Get the items in this position and put them to a list - toDelet...
in a label i can add a new line like this
Label.Caption:='First line'+#13#10+'SecondLine';
can this be done in a TListView?
listItem:=listView.Items.Add;
listItem.Caption:='First line'+#13#10+'SecondLine';
thanks
...
I have an ListView inside a HorizontalScrollView and it works perfectly fine, except for the initial load. I'm loading the data for the list view from a web service so I created a thread to do that. Once I have the data, I simply call _myListAdapter.notifyDataSetChanged(); and the data becomes visible in the ListView. But if the ListV...
Hi,
I'm looking for any way - and I'm pretty sure there is a default way but don't now how - to select an item in a listview by pressing a key. And the possiblity to specifity the selection by intipping more than one letter.
If I have this items in a list:
Cat
Country
Tree
By pressing "c" the item "Cat" should be selected. And by i...
Apart from the fact I still can't see why this class fills columns and scrolls horizontally, rather than filling rows and scrolling vertically, I'm confused how the width of items is controlled. I'm seeing quite a lot of padding (50-80 pixels) between the longest item in a column and the next column which means wasted space.
Is it contr...
Nested Listview with insert, edit, delete for asp.net. Found many examples but not with insert, edit and delete
...