Questions tagged [gridview]

A Gridview is a control for displaying and manipulating data from a variety of data sources.

A Gridview is a control for displaying and manipulating data from different data sources. It shows data from a variety of data sources in a tabular format.

26809 questions
320
votes
33 answers

Android Recyclerview GridLayoutManager column spacing

How do you set the column spacing with a RecyclerView using a GridLayoutManager? Setting the margin/padding inside my layout has no effect.
Nick H
  • 8,897
  • 9
  • 41
  • 64
308
votes
8 answers

Simple Android grid example using RecyclerView with GridLayoutManager (like the old GridView)

I know that RecyclerView has replaced the functionality of the old ListView and GridView. I am looking for a very basic example that shows a minimal grid setup using RecyclerView. I am not looking for long tutorial style explanations, just a minimal…
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
215
votes
16 answers

How to set Custom height for Widget in GridView in Flutter?

Even after specifying the height for Container GridView, my code is producing square widgets. class MyHomePage extends StatefulWidget { MyHomePage({Key key, this.title}) : super(key: key); final String title; @override _MyHomePageState…
Ajay Kumar
  • 15,250
  • 14
  • 54
  • 53
127
votes
6 answers

Gridview height gets cut

I'm trying to display 8 items inside a gridview. Sadly, the gridview height is always too little, so that it only shows the first row, and a little part of the second. Setting android:layout_height="300dp" makes it work. wrap_content and fill_parent…
tacone
  • 11,371
  • 8
  • 43
  • 60
120
votes
8 answers

How do I get Gridview to render THEAD?

How do I get the GridView control to render the tags? I know .UseAccessibleHeaders makes it put instead of , but I cant get the to appear.
Andrew Bullock
  • 36,616
  • 34
  • 155
  • 231
113
votes
4 answers

How to set Grid row and column positions programmatically

I have two Grids inside a Stackpanel. The first grid is named as GridX. Initially, inside the grid, there is a 2D array of Textboxes(RowDefs/ColumnDefs). The TextBox definition in XAML is
Vinod
  • 4,138
  • 11
  • 49
  • 65
109
votes
6 answers

Create thumbnail image

I want to display thumbnail image in a gridview from file location. How to generate that of .jpeg file? I am using C# language with asp.net.
Red Swan
  • 15,157
  • 43
  • 156
  • 238
95
votes
3 answers

How can I hide the header of a WPF ListView?

I want to be able to hide the header at the top of each grid column in a WPF ListView. This is the XAML for my ListView:
Ozplc
  • 1,091
  • 2
  • 10
  • 15
91
votes
13 answers

How to autosize and right-align GridViewColumn data in WPF?

How can I: right-align the text in the ID column make each of the columns auto size according to the text length of the cell with the longest visible data? Here is the code:
Edward Tanguay
  • 189,012
  • 314
  • 712
  • 1,047
89
votes
10 answers

Best way to make WPF ListView/GridView sort on column-header clicking?

There are lots of solutions on the internet attempting to fill this seemingly very-basic omission from WPF. I'm really confused as to what would be the "best" way. For example... I want there to be little up/down arrows in the column header to…
Domenic
  • 110,262
  • 41
  • 219
  • 271
83
votes
16 answers

How to hide a column (GridView) but still access its value?

I have a GridView with a DataSource (SQL Database). I want to hide a column, but still be able to access the value when I select the record. Can someone show me how to do this? This is the column I want to hide and still want to access its…
Tassisto
  • 9,877
  • 28
  • 100
  • 157
80
votes
16 answers

GridView - Show headers on empty data source

In C# how do I still show the headers of a gridview, even with the data source is empty. I am not auto generating the columns as they are all predefined. Currently what I am doing is the following. Get a DataTable back from a stored procedure,…
Joshua Hudson
  • 2,187
  • 2
  • 20
  • 24
78
votes
12 answers

Making GridView items square

I would like the items of my GridView to be square. There are 2 columns and the items width is fill_parent (e.g. they take as much horizontal space as possible. The items are custom views. How do I make the items height to be equal to their variable…
anagaf
  • 2,120
  • 1
  • 18
  • 15
69
votes
26 answers

GridView sorting: SortDirection always Ascending

I have a gridview and I need to sort its elements when the user clicks on the header. Its datasource is a List object. The aspx is defined this way :
Julien N
  • 3,880
  • 4
  • 28
  • 46
69
votes
11 answers

How to put GridView inside ScrollView

I have to design layout such that whole layout should scroll and inside layout I have to display related content in Grid form so I decided to use GridView.But problem is that I’m unable to use GridView inside ScrollView I have read…
Dilip
  • 2,271
  • 5
  • 32
  • 52
1
2 3
99 100