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
25
votes
5 answers

How to set a fixed number of rows in android gridView?

I am trying to create one gridView in android which have 10 rows and 10 columns.How can I set a fixed number of rows in Gridview ?
Ann
  • 727
  • 1
  • 7
  • 19
25
votes
2 answers

Android set the GridView to have 2 columns per row only

Here is my code in my Activity: public class GridViewActivity extends Activity { GridView gridView; static final String[] MOBILE_OS = new String[] { "Android", "iOS", "Windows", "Blackberry" }; @Override public void…
Raphael Pineda
  • 420
  • 1
  • 4
  • 11
24
votes
8 answers

How do I add a CSS class to a BoundField, so I can find it with jQuery?

I want to add a class name to some of my BoundFields in the GridView control; so that once the GridView is data-bound and rendered I can obtain something like: Some data came from data source The purpose of doing such a thing…
pencilCake
  • 51,323
  • 85
  • 226
  • 363
24
votes
2 answers

How to change background of 1 row in Yii2 Gridview

I'm working with Yii 2, and it's grid view to show information. Now, my problem is that whenever a user scans two identical serial numbers and/or mac addresses, it should highlight the row (change color to red), and show some error sign or…
Paramone
  • 2,634
  • 4
  • 31
  • 58
24
votes
3 answers

Extend GridView ActionColumn with additional icon

I'm building a webapp with Yii2 framework that will provide users (logged in) the capability to download pre-uploaded files by administrators. I've created the action actionDownload in the specific controller that call the sendFile() method. How can…
AleCat83
  • 1,443
  • 3
  • 22
  • 41
24
votes
4 answers

Bootstrap 3 grid, set 1 column size for all displays

In bootstrap v3, the column sizes are declared for different screen sizes..
I often find myself just needing 1 size for all display types.. and i…
BrownChiLD
  • 3,545
  • 9
  • 43
  • 61
24
votes
4 answers

Append a child to a grid, set it's row and column

How can I append an Image object into a Grid and set it's Row and Column? The grid is 3x3. Main file:
Novak
  • 2,760
  • 9
  • 42
  • 63
23
votes
6 answers

Gridview row editing - dynamic binding to a DropDownList

I'm trying to get an ASP.NET 3.5 GridView to show a selected value as string when being displayed, and to show a DropDownList to allow me to pick a value from a given list of options when being edited. Seems simple enough? My gridview looks like…
marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
23
votes
7 answers

Prevent HTML encoding in auto-generated GridView columns

I have a GridView bound to a DataTable that I construct. Most columns in the table contain the raw HTML for a hypelinklink, and I would like that HTML to render as a link in the browser, but the GridView is automatically encoding the HTML, so it…
ProfK
  • 49,207
  • 121
  • 399
  • 775
23
votes
5 answers

Adding Link Column to ASP.NET GridView

I want to output a list of news headlines that are clickable. So far I can get it to print out a list of headlines because I dragged and dropped the NewsHeadline table in designer view in VS 2010. How do you think I should the make the list…
patrick
  • 16,091
  • 29
  • 100
  • 164
22
votes
4 answers

Android gridview adjusting to screen size

The grid view of my application has 3 rows and 3 columns. I want this to fill the screen ,irrespective of the screen size of the device. I tried getting window size and setting the layoutparams accordingly. But this is not giving a perfect alignment…
png
  • 4,368
  • 7
  • 69
  • 118
22
votes
5 answers

datetime format in asp.net gridview

I need to display a datetime column in my gridview, but I don't want to show millin second for sure. How do I set the format string in gridview to display a datetime data in following format: 08-19-2007 11:09 AM
Steven Zack
  • 4,984
  • 19
  • 57
  • 88
22
votes
6 answers

width of grid view boundfield

I can not set the width of bound field. Is there any problem in the following markup.
mmk_open
  • 1,005
  • 5
  • 18
  • 27
22
votes
10 answers

How can you show the date in a gridview as a date only instead of a datetime?

I am pulling in date values from a sql server database using a gridview and and the date gets converted from 12/12/2009 to 12/12/2009 12:00:00 AM How do I prevent that from happening ? Thanks !
Mervin
  • 725
  • 2
  • 16
  • 37
22
votes
1 answer

Yii2 - Pass variable from view to Gridview custom action columns

I want to save the last place that a user visited before he click onto "Edit" button in the gridview widget of a page. I created a variable named $lastAddress but I really dont know how to pass it onto the gridview and append it to the $url variable…
Lê Sỹ Hoàng
  • 409
  • 1
  • 3
  • 15