So, this question may be a little vague, but I have constant discussions about it:
When designing an Asp.Net page, a lot of times you might just want to throw a quick and dirty GridView on the page. When you are going that route you have the various datasource options (I typically use ObjectDataSource tied to a business object) and you...
How can i bind a list of my custom class(Ex :Student) objects to a list view in WPF ?
My XAML markup for :ListView is here.I want to show the users in the Listview like a html table
ListView Height="100" HorizontalAlignment="Left" Margin="27,98,0,0" Name="listView1" VerticalAlignment="Top" Width="320">
<ListView.View>
...
Is it possible to customize Objectfieldlist according to following design?
----------------------------
ROW#1 ROW NAME
row details
---------------------------
ROW#2 ROW NAME
row details
---------------------------
ROW#3 ROW NAME
row details
-----------------------...
I have a ListView that gets updated frequently, at irregular intervals.
I want it so that when an update is received the item will be scrolled into view.
I know the code to do that:
logListView.ScrollIntoView(logListView.Items[logListView.Items.Count - 1]);
I don't know where to put it so that it happens when the ListView is updat...
Hi,
I have an activity with multiple list views that are continuously receiving new values form a socket thread, another thread parses the data and updates the array adapters, then the ui thread calls notifyDataSetChanged() to cause the list to refresh.
My issue is that im refreshing all the list a couple of time a second, this causes t...
I would like to create a UI where half of the screen is a ListView and the bottom half is another view. Not sure how to specify the maximum height for the ListView.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="...
If I launch an activity from my ListView, when I go back to the ListView it is reset back to the beginning - the original position within the ListView is lost.
This does not happen if I change the orientation of the device. onRestoreInstanceState is called and the position within the ListView is maintained.
What is causing the positi...
Hi all.
I am not expert in ASP so i would be appreciated for the help. Issue connected to Entity FW, ListView Control, its Datasource and type convertion.
I have the following LINQ query :
RoutesEntities routesModel = new RoutesEntities();
LocalesEntities localesModel = new LocalesEntities();
ObjectQuery routesQuery = (ObjectQuery) f...
Hi,
I've a listView Activity where user could open a dialog to display more information about a line of the list.
On the Dialog user could modify a line. So my purpose is to refresh listView when User modify it by the Dialog.
The problem is that I couldn't use myArrayAdapter.notifyDataSetChanges() so How I could do that ?
...
I have a relative layout which looks like this:
Here is the code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
android:id="@+id/nameText"
android:lay...
I have a small C# 3.5 WinForms app I am working on that grabs the event log names from a server into a listview. When one of those items is selected, another listview is populated with the event log entries from the selected event log using the SelectedIndexChanged event by grabbing the text property of the 1st item in the SelectedItems...
I have a ListView and would like to remove a row item when the user long clicks on selects Remove from the context menu.
@Override
public void onCreateContextMenu(ContextMenu menu, View v,ContextMenuInfo menuInfo) {
super.onCreateContextMenu(menu, v, menuInfo);
menu.setHeaderTitle("Selection Options");
...
I have list of items ion my activity which I load dynamically, item after item.
Initially I load "lightweight" version and when processing is done I want to update the item with new information. Like set some text or replace an image.
That means I need to update what ListView item is displaying after Adapter#getView already returns. Of ...
I've got a DataTable with this fields
datatable.Columns.Add("ProductID", typeof(int));
datatable.Columns.Add("LocationList", typeof(List<string>));
datatable.Columns.Add("LocationIds", typeof(List<int>));
datatable.Columns.Add("ProductName", typeof(string));
datatable.Columns.Add("Brand", typeof(string));
datatable.Columns.Add("Price", ...
Hello ....................
i have a list view and custom list adapter for it. There are various other fields in it and a Checkbox. The problem is that it is not able to map Checkboxes properly. I mean if an entry is already present in database it should come checked.
When i put a log in the View function it shows some of the ent...
How to add Image in ListView.Please Post some sample code for this.
...
I'm trying to refresh a ListView onReceive of a BroadcastReceiver. Within my main activitiy, which contains the ListView I'm talking about, I'm registering a receiver:
private final BroadcastReceiver smsIntentReceiver = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
String...
I am having a List View, all the list items(Text) need be to updated from a web service. My application can query the web service to fetch all the list items at one go or can query to fetch one list item at a time.
I having following queries
1)If i query the web service to fetch all the list items at once, it takes around 15 secs to down...
Hello everyone.
I am very sorry for the long title but I really didn't know how to be more self explaining than this.
The problem I have is this:
I designed and developed a WebControl which consists in a simple set of elements that, combined togheter in the simplest way, defines a custom button. This control is the one I would like to u...
I am adding items to my data source and would like it to appear in my ListView. For some reason nothing is appearing:
Adapter:
private class STCompanyAdapter extends ArrayAdapter<STCompany> {
private ArrayList<STCompany> items;
public STCompanyAdapter(Context context, int textViewResourceId,
ArrayList<...