Hello,
I have a listView on my form.I want to add stuff to it durring the program is running.
This is the code I use
public void FillList(string[] Name,int[] empty,int[] Population,int[] Max,int[] Check,int size)
{
if (this.InvokeRequired)
{
this.Invoke((MethodInvoker)delegate
{
...
Hi everyone!
I have some strange behavior of ListView control in WPF.
We are developing application in C#.
I created ListView with some items and set SelectedIndex to some index in
the middle of its list. Then I clicked mouse at any place on the ListView and
then navigate with Up/Dows keyboard keys, everything works perfectly. But If
...
How to create a GridView like view to the WPF ListView if i dont know the Column names at the design time because the collection will be created at runtime and the collection will be of type DataTable and it may contain a no.of columns.I can do it with WPF DataGrid but i want to achieve this with WPF ListView and I want to Achieve this w...
I want to select a particular column in a ListView. When I search for it I always find ways to select row-wise only. Any idea how do I do it? Also how do I get the selected column index?
Using MFC-VS2005.
...
I am trying to get a listview to automatically bind and update data elements. After looking at numerous examples and tutorials, I still can't seem to find what is wrong with my code. The display is working just fine. It is just the update command that fails. Here is my SqlDataSource node:
<asp:SqlDataSource ID="MSSQLDataSource" runat="s...
I've got a ListView control bound to an ObservableCollection of items, and I've set it's view to a GridView with columns bound to properties Data. Things seem to be ok, but the data in the source properties aren't being rendered at all. Here's the ScanData struct:
struct ScanData
{
public ushort Port;
public bool? Status;
...
I have a listview that has a few different controls. I need to bind specific fields of a query to certain parts of a control. The table contains a friendid and a firstname. I want to put the friendid at the end of a URL. I want to put the firstname in the text of a label. There will be multiple friends returned on the query. The listview...
I'm having a problem on Vista with the Listview control, in particular setting custom icons on the header. Normally under XP or any of the previous version of Windows, if I added an icon (in C++), I could do so with the following:
HeaderItem.mask = HDI_FORMAT | HDI_IMAGE;
Header_GetItem(HeaderHWND, Column, &HeaderItem);
TurnOn(Hea...
I have a ListView that's bound to a LINQDatasource control and need to get the primary key value of the table within the ItemUpdated event handler.
I have no problem getting the value from within the ItemUpdating event handler because the ListViewUpdateEventArgs parameter provides access to the keys collection.
The keys collection does...
Is it possible to remove the checkboxes from a .NET WinForms ListView control at runtime?
The following code appears to have no effect when '.Checkboxes' has initially been set to 'true' and the control has rendered onto a form with checkboxes available for each list view item:
// C#:
testListView.BeginUpdate();
testListView.Checkbox...
I have a listview, where I set the datasource in the code-behind - this works fine.
When I add another listview (or databound control) to the listview's itemtemplate, and set the datasource for that control in the codebehind, the fields returned by the query seem to be unavailable to the nested listview; ASP.NET throws the following erro...
The documentation of the ListView control (using WinApi) seem to lack some basic information, here are some questions I couldn't seem to find a solutin to:
On most apps, when you double-click the border to the right of a column, the column resizes to some default width. I would have guessed that this width is specified by LVCOLUMN.cxDe...
I use a ListView to show a list of errors as they occur in my application. It behaves and looks exactly like the Error List in Visual Studio. I want to add auto-scrolling when the last error item is selected (like how Visual Studio's Log Window auto-scrolls when you place the caret at the end).
The list of errors is in an ObservableColl...
I am using a ListView control to display Pictures along with description and caption. I used to save the full path of the image in the url field, so when I display them in the ListView I don't need to edit anything. Now I am using something like:
HttpContext.Current.Server.MapPath("~/photos/") + savedURL
How can I edit my ListView t...
I'm trying to manually draw ListViewItems on a Custom UserControl. The control itself is a wrapper around a ListView stored as a private member on the class.
There is a DrawListViewItemEventHandler attached to allow manual drawing for these items, and for the most part this seems to work. The problem I have is where the text for the Lis...
I have a ListView where each item has a checkbox. Initially there are no events attached and I set the state of the checkboxes programatically. After this I attach an ItemCheckedEventHandler and the event handler fires for each of the events that occurred before the handler was attached. Is there a way that I can clear the event queue...
We have a Sharepoint website with a different page for each of our products and another page displaying a list of all our product release dates. You can change the view in this list so that only the release dates of a particular product are shown.
Is is possible to have a list view showing release dates of one product show up on the ...
I am showing users for my website in a listview (bound to Membership.GetAllUsers()); this is working fine. I would like to allow users to be created via the listview as well (along with some workflow driven information I'll be storing in the Profile), so I have added an InsertLayoutTemplate. However I cannot seem to read the values from ...
Hi,
I want to sort a ListView control in C# based on columns. I have created ColumnClickEventHandler:
private void contactsListView_ColumnClick(object sender, ColumnClickEventArgs e)
{
contactsListView.ListViewItemSorter = new ListViewItemComparer(e.Column);
contactsListView.Sort();
}
Where ListViewItemCom...
How can one programmatically fire the SelectedIndexChanged event of a ListView?
I've intended for the first item in my ListView to automatically become selected after the user completes a certain action. Code already exists within the SelectedIndexChanged event to highlight the selected item. Not only does the item fail to become hig...