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
1 answer

DevExpress MVC GridView BindToLINQ() Selects Too Much Data

When using the devexpress gridview's bindtoLINQ functionality it queries the entire table set instead of the page the client is looking at. IE. using SQL Server Profiler, we see it selects all columns of the 200k+ rows in the table instead of just…
L2Eer
  • 477
  • 2
  • 6
  • 13
3
votes
3 answers

C# selectedvalue of dropdownlist with ObjectDataSource

How do i set selectedvalue of dropdownlist if dropdownlist is within Gridview and dropdownlist is populated by objectdatasource when EDIT button is clicked? What happens to my app is dropdownlist gets populated but the first item always shows up as…
pndcck
  • 31
  • 1
  • 4
3
votes
1 answer

add columns with textboxes in gridview using C#

I'm working on a shopping cart in a website and I have my items(which have been added to the cart) in an arraylist. And using these values I've read the rest of the values from the db and and have populated on the gridview successfully. if…
pier
  • 503
  • 3
  • 14
  • 29
3
votes
2 answers

ASP.Net GridView 5000 Records

If a procedure returns 5000 (Five Thousand) rows and I want bind it with a Asp.net Grid View. Neither it won’t be good approach to call all the rows and bind it with grid and then on grid view Pageindex see all the data or this approach to strike…
codery2k
  • 79
  • 3
  • 11
3
votes
4 answers

Need gridview with some outer border and different inner border (.net web application)

I want to have a gridview with a red outer border and blue inner separator lines and used this markup/css:
AGuyCalledGerald
  • 7,882
  • 17
  • 73
  • 120
3
votes
2 answers

Only Display Certain List Object Properties in GridView

I've got a GridView control which is bound to a List of custom objects. The objects have 5 properties, however, I don't want to generate a column in the GridView for all the properties, only for certain ones. I know how to turn off…
JToland
  • 3,630
  • 12
  • 49
  • 70
3
votes
3 answers

Run a callback on bound fields of a Gridview

I want to process a field retrieved from the database for a Gridview to check to see if the information in it is a hyperlink. If it is, I want to generate a link from it, otherwise just leave it as raw text. At the moment the field in the Gridview…
deed02392
  • 4,799
  • 2
  • 31
  • 48
3
votes
1 answer

GridView + CursorAdapter + AsyncTask load image shifting randomly

I use SimpleCursorAdapter and GridActivity (extended Activity written by me based on ListActivity) to load music albums from MediaStore, and use AsyncTask load each album art . I tried this in bindView or getView, like this: new…
mariotaku
  • 693
  • 1
  • 10
  • 26
3
votes
2 answers

Get Value from ASP.NET GridView cell

How would I get the value from a GrivView cell when the edit button is clicked? I have tried other answer but none seem to work. I would like to be able to get the value of Questionnaire ID for the row when the edit button is pressed. Here is the…
HGomez
  • 1,494
  • 8
  • 32
  • 42
3
votes
2 answers

How To change Command Text and ImageButton of ItemTemplate in TemplateField

I have a column that has an ImageButton. my database field has bit data type. I want when my record has true value in that column show True.jpg and my command become MakeFalse and when it has false value show False.jpg and my command become…
Arian
  • 12,793
  • 66
  • 176
  • 300
3
votes
4 answers

Hide a Column in Telerik RadGrid hierarchy

I have an hierarchy in Telerik RadGrid in ASP .Net as shown in below Fig. Data binding is at run time and dynamic. My requirement is, I need to hide some columns programmatically like, "OrderID" in second level, "EmployeeID" in third level and…
Charan Raju C R
  • 758
  • 5
  • 21
  • 43
3
votes
1 answer

Issues with paging and sorting in asp.net gridview

I have a grid view where I am implementing both paging and sorting. When I sort the table and select page 2, then the sorting is lost and the second 20 records are displayed in desc as mentioned in gridview binding private DataSet…
Murthy
  • 1,502
  • 11
  • 31
  • 45
3
votes
1 answer

Setting DateTime as a SqlDataSource parameter for Gridview

Hey I would like to display certain data with my stored procedure for the last 30 days. here is what I have done (aspx.cs file): protected void Page_Load(object sender, EventArgs e) { DateTime toDate, fromDate; …
user1051364
  • 35
  • 1
  • 6
3
votes
3 answers

ASP.NET MVC how to bind custom model to view

I would like bind an array data to view in ASP.NET MVC, how can I do that? sorry for not clear about my question. Right now, I creat a custom object(not array), I tried to pass it to View, but the error shows "The model item passed into the…
Smallville
  • 685
  • 4
  • 13
  • 24
3
votes
3 answers

GridView.setOnItemClickListener is not working in GridView

I am trying to create an application which dynamically lists installed applications in a gridview.I am able to display the applications in a gridview form but not able to make these application icons clickable. Nothing happens when i click these…