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
3
votes
4 answers

issue with populating dropdownlist in gridview edit mode in c#

I am having editable Gridview with column named Country which has so long listing. When I am showing data the value of Country is in Label but when I choose edit should show DropDownList with country listings. I am able to show listings. it should…
Heena
  • 754
  • 5
  • 18
  • 30
3
votes
3 answers

Exporting to excel loses the date format

I am exporting the contents of SP to excel. One of the columns brings the date format as 08/2015 but when exporting to excel, the format gets changed to Aug-2015. I did a google on the same and found that including the below code does the…
xorpower
  • 17,975
  • 51
  • 129
  • 180
3
votes
2 answers

Hyperlink url for an asp.net gridview column

I have a gridview that returns values from a directory path such as :
Frank
  • 2,015
  • 10
  • 36
  • 57
3
votes
1 answer

Displaying selective columns in an asp.net gridview

This is a follow up to my previous question: Filter DirectoryInfo files by date in asp.net I have a gridview that is populating data from DirectoryInfo. However, I only want to display certain columns, and customize the column names and the…
Troy
  • 1,659
  • 4
  • 19
  • 33
3
votes
2 answers

Changing the column name in GridView using HTML or C#

The point is I have used GridView in my project. And I have assigned the Values to GridView using the SQLConn, SQlDataAdapter and DataSet GridView1.DataSource=ds; GridView1.DataBind(); The point is that the output shows the column name of the…
user953016
3
votes
1 answer

ASP.NET Gridview Append value to Edit Template Control before Binding

I have a gridview that supports updating records. I have an edit template with a Dropdownlist(ddl) that replaces textbox. The DDL is bound to a datasource and I need to append a value (the current value of this field to the DDL). This enables users…
user937036
  • 341
  • 1
  • 3
  • 15
3
votes
0 answers

GridView get row and Column

Is that any way to get the row and column number of the clicked cell in GridView (Android)? public void onItemClick(AdapterView parent, View v, int position, long id) { int row_no=position/MAX_COL; int…
Mahendran
  • 2,719
  • 5
  • 28
  • 50
3
votes
1 answer

Nested GridView - How to trigger the Child GridView Button Click event

I need to show a Master/Child data in a page and I have used multiple GridViews to achieve the same. So, I have created two GridViews (Parent & Child) and now I want to fire the Button click event (i.e. btnLock) from the child gridview control and…
user972255
  • 1,828
  • 10
  • 32
  • 52
3
votes
1 answer

Sort gridView by proper column which is TemplateField

I have got problem with sorting column in gridView. I want to select only those rows in column which name equal for example "Finished" My gridView consists of few BoundField and TamplateFields. When I want to sort by proper BoundField I put proper…
Jaro
  • 43
  • 1
  • 2
  • 6
3
votes
2 answers

How Can I Check the checkbox that belongs a GridVIew?

I want to do a javascript function that check the unchecked checkbox. My function nowadays, check all the unchecked checkbox, and I need that just check a specific GridView unchecked checkbox function checar() { var el =…
Lucas_Santos
  • 4,638
  • 17
  • 71
  • 118
3
votes
3 answers

Android: layout at the bottom of a gridview (at the end of it)

What i want is to have the gridview filling whole screen. And when you scroll it down, at the end would appear a layout with 2 buttons. Ive been reading and couldnt figure how to get it. I could fix it on the top of the screen and the bottom (over…
Duqe
  • 299
  • 1
  • 5
  • 15
3
votes
2 answers

android grid view with images (images shrinking and looking blur)

I have to show 7 icons on the home screen of my application .To do this i have arranged the icons on the grid view using image view to show images .On emulator it looks absolutely fine but images shrink and look blur ,when i deploy the application…
Shruti
  • 1
  • 13
  • 55
  • 95
3
votes
4 answers

exception when I tried to update my gridview in asp.net

when I tried to update my gridview which is connected using and Enabling update and delete in this data Source I got an exception told me that : javaScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException:…
kartal
  • 17,436
  • 34
  • 100
  • 145
3
votes
1 answer

Set ASP.Net GridView column to Button field programmatically

I'm generating the columns of a gridview in code which is working fine (I have AutoGenerateColumns="false" set on the page), so I don't have any columns defined in the html markup. I would like to make one of the columns a ButtonField, so I can use…
finoutlook
  • 2,523
  • 5
  • 29
  • 43
3
votes
4 answers

Displaying a image in grid view based on condition

I am trying to display 1. Red if the TimeReceived is Null, (or) 2. Amber when Time Received is not null and Time Read is Null (Or) 3. Green When Time read is not null It throws an error Input string was not in a correct format. Description: An…
Mark
  • 2,720
  • 15
  • 56
  • 87
1 2 3
99
100