You can only define a GroupItemCount in the ListView, but what if you want to do grouping based on a property of the items in the data source? Sort of an ad-hoc group by. The data source is sorted on this property.
I have seen some examples where some markup in the ItemTemplate was conditionally show, but I want to leverage the GroupTem...
I cannot show the content of a document library using a list view contained in a web part located on my root web application.
Here is the site structure:
main_site
subsite1
Shared Documents
subsite2
Shared Documents
My webpart is located on the main_site.
In this webpart, I have a Sharepoint ListViewWebPart ...
I'm using listview control with the following parameters set:
this.listView1.BackColor = System.Drawing.Color.Gainsboro;
this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.columnHeader1,
this.columnHeader2});
this.listView1.FullRowSelect = true;
this.listView1.H...
I'm going to be developing an events calendar page which will display a list of events for 12 months from the current date (it will be read-only). It's easy enough to grab the data from the DB with a SP passing in the start date and number of months etc, but I need to group the information by month when it is displayed in the page.
e.g. ...
I'm using a listview to implement some autohelp in my application. The user can type into a file, which I use to scroll to the proper place in the listview. However, if the user changes focus to the listview and types things in there, the listview starts its own processing of the user's input. I want to have the listview enabled and f...
I am trying to set the DataTemplate of my ListView.GridView's CellTemplate dynamically at runtime.
The problem is when I do this, nothing happens. I checked the CellTemplate and it's not null but its VisualTree property is null.
Any suggestions?
GridViewColumn gvc = new GridViewColumn
{
Header = col.Label ?? col.Name,
...
I want to user the asp:ListView
I want to use it for editing
I dont want the postback to use Javascript when I put it into the edit mode.
Is this possible?
...
C#: ListView in VirtualMode not displaying design-time columns when adding items & subitems at runtime?
I have a listview set up at design time with 5 columns. column[0] == empty checkbox item and the other 4 contain text.
My problem is that it 'whites out' my column headers & text when I press the button to add items to the listview f...
In my ListView I want to use a property of the Container in an if statement on the aspx page as shown below. But I'm getting a "The name 'Container' does not exist in the current context" error. Can I not the Container in an if statement?
<ItemTemplate>
<tr>
<td>
<% if (EDIT_INDEX == (((ListViewItem)C...
How do I display hierarical data in ASP.NET? I have a data source that looks like this:
class Tree
{
IEnumerable<Node> Nodes { get; set; }
}
class Node
{
string Description { get; set; }
decimal Amount { get; set; }
IEnumerable<Node> SubNodes { get; set; }
}
I would like to render is as a list of divs, like the one below....
C#: How do you check if the mouse click position was only inside an item in Column[0] in a listview under virtualmode?
I can get the the Item object the mouse just clicked using ListView.GetItemAt, but after that, how could I check if it was clicked within column[0]?
...
Hello. I want to send a double click to a listview. From what I've read on msdn it seems I gotta send a WM_NOTIFY message and something with NM_DBLCLK. But I do not understand really well hwo to implement it. I've worked with SendMessage before but MSDN is not that clear on how to fill the structs and so:
WM_NOTIFY http://msdn.microsoft...
Hi All,
I have WPF listview, with around 1000 records in it. I am doing on the fly filtering of listview items, that is as user types in to text box control, it matches items with text box content and filter items in to listview. So far filtering was working fine and it was pretty fast. Recently I have implemented custom sort on this ...
How can I select an entire row of a ListView control in Details view-mode?
Or alternatively, how can I select a row in a ListView by clicking on any subItem?
...
Hello
I want to be able to select which item is selected in another program's list view(I don't have access to its code). Actually, it is an SysListView32, which I assume is the same. I already have the following code, which unfortunely despite compiling, seems to do nothing (although SendMessage() returns 1).
process=OpenProcess(PROCE...
Suppose I need to change the status of an item from active = true to active = false and vise versa and at the same time persist my change in the database table.
I tested ItemChecked event like the following:
private void listView1_ItemChecked(object sender, ItemCheckedEventArgs e)
{
ListViewItem item = (ListViewItem)sen...
Hi all ,
I have listview with custom sort and filter implemented on it...It is textbox based filter , as user types in, items in the listview are filtered. Now...when i apply sort on listview, filter is very slow because each time custom sort compare method is called for each item in listview while filtering... how I can avoid compa...
In our current WinForms app, we are displaying millions of records in ListView, using virtualization. Rows are loaded from DB as they are requested. This works well, with good performance.
This is a showstopper for migrating to WPF for us. We need data virtualization in a ListView, like WinForms 2.0 has.
Do you know a decent third-pa...
Hi all,
I have a virtual list view and each row has a checkbox, I have a master checkbox that checks all the rows in the grid, this works fine until I filter some of the rows (all rows currently unchecked) and then load back all rows into the list view and then click my master checkbox to select all rows, all rows appear selected until ...
C#: How to effectively filter (hide) ListView Items while in virtual mode?
I am looking for a way to filter (hide/show) items in ListView in Virtual Mode. I have my items cached in an array of listview items, how could I effectively make it so only specific listview items are displayed when pressing a filter-button, and then all of them...