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

DataBind() in C#

I am fairly new to Entity framework as well as LINQ. I have used DataGridView before and to set the datasource to it DataGridView1.datasource=dt; // dt=datatable was enough. But while reading ASP.Net book they have given the code using Entity…
Sandy
  • 11,332
  • 27
  • 76
  • 122
3
votes
1 answer

Dynamically Add TemplateField to Details View

I have a grid view that, on selected index, will populate a details view. If the selected index happens to have multiple IP Address's I want to add additional fields to display them. They don't need to be databound since I know the data. I'm using…
Will
  • 989
  • 4
  • 19
  • 33
3
votes
2 answers

Does GridView ButtonField click cause a postback?

I'm having problems when using a ButtonField to issue a row command. When I click the ImageButton in the ButtonField, IsPostBack is false My understanding is that an ImageButton in a ButtonField in a GridView should cause postback to be…
ghostJago
  • 3,381
  • 5
  • 36
  • 51
3
votes
0 answers

strange behaviour with selecting and showing images from sdcard

I have made a simple android application that displays images in a gridview and you can select some images and send them. This is my getView method. public View getView(int position, View convertView, ViewGroup parent) { View v; …
Khizar
  • 2,288
  • 5
  • 32
  • 53
3
votes
2 answers

android: gridview

I have make a gridview in which i have added images . But my problem is that it is showing very small size of gridview with only 3 images in it like in the picture and i want to show 9 images in it. s But i want that the gridview size to be fill…
ekjyot
  • 2,247
  • 7
  • 39
  • 63
3
votes
1 answer

Load image from database with entity framework into gridview

i have created a model from the standard Northwind database with the Entity Framework. Now i want to fill a Gridview with a list of categories, but in that category entity(table) is a collumn Picture aswell. The gridview gets filled with the Id,…
Wartodust
  • 284
  • 1
  • 6
  • 16
3
votes
2 answers

Populate GridView with object data

Wondering the best way to populate a GridView with my object data. I have to show a product list from an complex object Sale, whose structure is something like this: class Sale { int id; List saleItems; } class SaleItem { int…
Yuri Ghensev
  • 2,507
  • 4
  • 28
  • 45
3
votes
1 answer

Unable to cast the type 'System.Int32' to type 'System.Object'. LINQ to Entities only supports casting Entity Data Model primitive types

I need some advice on how to fix the following error: "Unable to cast the type 'System.Int32' to type 'System.Object'. LINQ to Entities only supports casting Entity Data Model primitive types." I have a gridview (RadGrid, but that's not important)…
wegelagerer
  • 3,600
  • 11
  • 40
  • 60
3
votes
2 answers

Adding new rows dynamically in a grid view or datatable in asp.net?

I am binding the grid view using data table. My task is to add new rows to my grid view dynamically when the user clicks "ADD" button in grid view it should generate new row with three text boxes. For example: When I click the add button in the…
user414320
  • 61
  • 1
  • 1
  • 7
3
votes
2 answers

Ajax control Toolkit Hover Menu with GridView

Hi there I am trying to achieve the same functionality of the Example Hover menu over at http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/HoverMenu/HoverMenu.aspx However when my gridview display's and I mouse over the menu comes up but…
user685590
  • 2,464
  • 5
  • 30
  • 42
3
votes
2 answers

Gridview with FileUpload control

I have a gridview that shows an image as part of one of its columns. In Edit mode, I would like to let the user have the ability to upload a new image file, so I am using the FileUpload control in the edit portion of the template. I have an event…
Kolten
  • 3,495
  • 5
  • 42
  • 59
3
votes
2 answers

The server tag is not well formed

I have the following image button on the GridView and I want to call the OnClientClick to call javascript method with passing a parameter. I am getting Server Tag is not well formed error. I tried changing double quotes to single quote etc, still…
Tippu
  • 1,191
  • 4
  • 16
  • 36
3
votes
5 answers

How to make visible a column of gridview?

I am using Gridview.In this i have 2 columns i.e. department and emailID.In this gridview department is bind from database and showed in linkbutton in gridview. I want to do that when i clicked on thst dept linkbutton it make visible the column…
divya
  • 405
  • 2
  • 6
  • 18
3
votes
1 answer

Dynamically generate hyperlink from 2 columns in GridView

I hope I can explain this clearly: I have a GridView that only displays an ID and Name field from an EntityDataSource. I want to add a third column that will contain a dynamically generated hyperlink corresponding to each ID. However,the…
colonel_px
  • 305
  • 4
  • 16
3
votes
1 answer

Can I add an additional action to a DetailsView in ASP.NET?

Currently I have a DetailsView attached to a GridView. When you select an item from the GridView the details show up in the DetailsView (duh). Right now there are 3 event options on the DetailsView: Edit, Delete, and New. I would like to add a 4th,…
Joe Phillips
  • 49,743
  • 32
  • 103
  • 159