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
68
votes
9 answers

Can I convert a boolean to Yes/No in a ASP.NET GridView

I have a ASP.NET GridView with a column mapped to a boolean. I want do display "Yes"/"No" instead of "True"/"False". Well actually I want "Ja"/"Nej" (in Danish). Is this possible?
Thomas Jespersen
  • 11,493
  • 14
  • 47
  • 55
65
votes
5 answers

Android: How does GridView auto_fit find the number of columns?

I would like to understand better how Gridview works, in particular auto_fit. Here is the XML layout:
galath
  • 5,717
  • 10
  • 29
  • 41
65
votes
8 answers

Android: Disable highlighting in GridView

How can I turn off the orange highlight when clicking an item in a GridView? I haven't been able to find a solution in the documentation or through testing.
Impression
  • 781
  • 2
  • 6
  • 7
63
votes
7 answers

Grid of images inside ScrollView

I'm trying to create a screen with both text and images. I want the images to be laid out like a grid, as shown below, but I want them to have no scroll functionality other that the one provided by the surrounding ScrollView. An image will best…
hanspeide
  • 2,819
  • 4
  • 25
  • 33
60
votes
12 answers

Android ScrollView doesn't start at top, but at the beginning of the GridView

I have a problem with a ScrollView that has inside of it a personalized GridView and other tipe of views.The first time I start the Activity, the ScrollView starts at its top, but if I visit the Activity other times the ScrollView starts at the…
user2328149
  • 737
  • 1
  • 8
  • 14
59
votes
5 answers

How to create GridView Layout in Flutter

I am trying to layout a 4x4 grid of tiles in flutter. I managed to do it with columns and rows. But now I found the GridView component. Could anyone provide an example on how to do it using it? I can't really wrap my head around the docs. I don't…
OhMad
  • 6,871
  • 20
  • 56
  • 85
58
votes
8 answers

The data source does not support server-side data paging

I have a GridView on my screen and need it to allow paging. Markup:
ClareBear
  • 1,493
  • 6
  • 25
  • 47
57
votes
2 answers

Difference between ListView and DataGrid in WPF?

I have to retrieve some questions from the database and display them on the user screen dynamically. I also need to add some controls in the columns of grid view, basically a question and input box for an answer. Please suggest which one should I…
MangoTable
  • 695
  • 3
  • 8
  • 13
57
votes
9 answers

ASP.NET GridView RowIndex As CommandArgument

How can you access and display the row index of a gridview item as the command argument in a buttonfield column button?
mirezus
  • 13,892
  • 11
  • 37
  • 42
53
votes
5 answers

Get DataKey values in GridView RowCommand

I have a GridView with an associated DataKey, which is the item ID. How do I retrieve that value inside the RowCommand event? This seems to work, but I don't like the cast to LinkButton (what if some other command is firing the event?), and I'm not…
Farinha
  • 17,636
  • 21
  • 64
  • 80
52
votes
5 answers

Paging & Sorting grids with ASP.Net MVC

I'm new to MVC, and am not following how you'd do paging and sorting on a grid. I'm used to using the asp.Net GridView control with an ObjectDataSource pointed at objects in our business layer - and in that case the ODS handles all of the paging &…
Scott Ivey
  • 40,768
  • 21
  • 80
  • 118
51
votes
2 answers

How can I use a simple Dropdown list in the search box of GridView::widget, Yii2?

I am trying to make a dropdown list in the search box of a GridView::widget, Yii2 for searching related data. So, how can I create a simple dropdown list in the search box of GridView::widget, Yii2 framework? Thanks.
washiur17
  • 617
  • 1
  • 6
  • 12
49
votes
8 answers

URL in Yii2 GridView

I have this code: $dataProvider, 'filterModel' => $searchModel, 'columns' => [ ['class' => 'yii\grid\SerialColumn'], [ 'label' => 'bla', 'format' => 'url', 'value' =>…
Sarvar Nishonboyev
  • 12,262
  • 10
  • 69
  • 70
47
votes
13 answers

How to get the cell value by column name not by index in GridView in asp.net

I am having a gridview in asp.net and now I want the cell value by the column name but not by the cell index. How would be it possible by retrieving the cell value by the cell column name
Vara Prasad.M
  • 1,530
  • 9
  • 31
  • 55
47
votes
2 answers

ListView.GridViewColumn (*) width

I am using ListView control instead of DataGrid in my WPF application. I want to give * width to my ListView.GridViewColumn, but whenever I am providing * width to ListView.GridViewColumn, it gives me a compile time error. Kindly suggest me how can…
Yogesh
  • 829
  • 2
  • 8
  • 21