Is there a way to dynamically set the ListId field in the ListView control. We cannot guarantee that the list we are interested in has a consistent GUID between installations (The list is deployed as part of a site template that we do not control). I've tried using the PreInit event to set a variable (see the list guid: section. If I ...
I have a ListView backed by customized ArrayAdapter where each item has 2 LinearLayouts - one I call head, and the other one - body.
The body is hidden (gone) until user clicks on the row at which time it slides out. The second click (on the head) will hide the body. However if user clicks on the body it brings another activity. All of t...
In the control ObjectListView(http://objectlistview.sourceforge.net/html/cookbook.htm), I'm trying to add a custom sorter where it ignores "The" and "A" prefixes.
I managed to do it with a regular ListView, but now that I switched to ObjectListView(a lot more features, and ease), I can't seem to do the same.
The following is the Main c...
How do I delete a selected ListViewItem from a WPF ListView when the ItemsSource is set to a DataView? I can get the ListViewItem that was selected and then how do remove the actual row in the DataView?
DataView dv = (DataView)myListView.ItemsSource;
ListViewItem lvi = (ListViewItem)myListView.ItemContainerGenerator.ContainerFromItem(m...
I'm populating a ListView with items and add images from an ImageList (in the designer). The images, however, are displayed in very poor quality, even though I've set the image size in the ImageList to their original size (16x16). Have a look:
The original images are beautiful, sharp PNG icons. What can I do?
...
What's the reason for this?
I override OnPaintBackground and draw a string. It doesn't show up until I call this in the constructor:
this.SetStyle ( ControlStyles.UserPaint, true );
But then I don't see the items in the listview.
Why and how to solve this?
EDIT: code
protected override void OnPaintBackground ( PaintEventArgs peve...
There is a strange bug in ListView/GridView in WPF when the SelectionMode is set to Single.
Ways to reproduce:
Generate a collection (the collection must have enough items so that the ListView can at least scroll 2-3 pages):
var customers = from c in _db.Customers
orderby c.Name, c.City
select c;
Bind the collection to the ...
I am using Grammarian's ObjectListView. I changed my old listviews to that, but all I do is to fill in items. But when the app starts up and my mouse is over the listview, it immediately throws an exception for:
System.InvalidCastException was unhandled
Message="Unable to cast object of type 'System.Windows.Forms.ListViewItem' to type...
I am working on an application where users enter information that is then added to a listview. That works great. The only problem is, the application connects to a web site that updates the "Points" field in that listview for each account. I am not sure how I can update a single subitem within a listview.
Here is an example screensho...
In my ListView, I choose an Item to "Add Favorite" and I have to do some stuff work, I fill data again to refresh the List, then I implement OnScrollListener use setSelection(firstVisibleItem) to set List display right on Item was added.
Are there any better way to do that. I mean like mCursor.requery() or something like that in android...
Hello everyone,
Ive tried searching for hours now and cannot find out why my code (aka, me.) is failing
Basically... I have a listview control which I'm passing a datatable of products (ID, Name, Description and Price columns), and im trying to make it so that when the "checkout" button is pressed, it parses through all the controls on...
Adding contents to listview is a simple proceess like
ListViewItem item = new ListViewItem();
listView1.Items.Add(item);
item.Text = "fdfdfd";
item.SubItems.Add("melp");
item.SubItems.Add("asfd");
Can any one tell me what exactly going on here though here also contents are added and d...
Hi,
i have one performance problem with XML and ListView:
i have XML file with about 12000 nodes (yes, it it very much, but all nodes are necessary). This file has the following structure:
<?xml .... ?>
<MyRootNode>
<node name="name1" lang="en" artist="aaa" genre="dsdsds" dsadasd="dsdsd" />
...
<node name="name12000" lang="en" artist=...
Hi,
I have a combobox which should have a datatemplate to hold several columns (along with its headers). I have created a simple DataTemplate, but I can't seem to display a ListView in it. All I can do is have the DataTemplate hold a StackPanel which then binds to my individual rows. But this way I cannot add Headers to each 'column...
My ListView have more than 3000 rows. And when I typing on EditText to filter data in my ListView it run slowly. Look at my code here
final TextWatcher textChecker = new TextWatcher() {
public void afterTextChanged(Editable s) {}
public void beforeTextChanged(CharSequence s, int start, int count,
int after) ...
Is there a way to set the columns to be on the left of side of a listview instead of on the top? Thanks.
...
I don't get this issue. If I have a ListView and it is databound to a datatable with 1 item in the listview, why does the Item Count = 0 when I try to access a control in the ListView using the ListView.Item[0].FindControl(".....") method?
Here is sample code from the msdn page on the ListView Control. Imagine the SqlDataSource1 retur...
Hi,
I have User Controls (.ascx) file and when I place it inside a ListView Edit Template it throws a NullRefreche error (Object reference not set to an instance of an object).
Can anyone tell me why? Is it because of a late binding?
...
I need to have nested listviews (3 levels - main -> item details -> each detail)
I would like to use user controls inside as templates. Each listview must have add/edit/delete commands
I keep getting Invalid postback or some other errors and want to see what is the right way to do this?
...
I'm using an extended version of BaseAdapter based on the EfficientAdapter example from the SDK demo samples.
My data is basically an object (ListPlaces) which holds an ArrayList with the actual list of places, accessible via listPlaces.getValues(). This ArrayList data is sorted by range and the ArrayList consist of some special items (...