Most voted "gridview" questions
A Gridview is a control to display and manipulate data from a variety of data sources. A tag can be used for any technology.
Learn more…109 questions
Sort by count of
- 
		17 votes3 answers506 viewsHow to instantiate a Gridview or a Listview for the same Activity?In my app I am presenting a list of items. I would like in certain situations to be presented with a ListView and others like GridView. Situations are: Smartphone(Portrait) - ListView… 
- 
		8 votes1 answer3496 views
- 
		7 votes4 answers4198 viewsHow to save and upload data from a . txt to a gridview?It’s been two days since I’ve been looking for help for my problem, but everything I think doesn’t fit. I’m doing a simple program, as if it were an agenda, where I put all the records of my store.… 
- 
		6 votes1 answer742 viewsSelect Gridview line with checkboxfunction Selecionar(elemento,cordefundo) { var Inputs = elemento.getElementsByTagName("input"); var cor = elemento.style.backgroundColor; //manter a cor default do elemento for(var i = 0; i <… 
- 
		4 votes1 answer142 viewsEdittexts dependent on an Android GridviewI have two Edittexts, a discount value, a percentage and an update Imagebutton, all are in a Gridview. When clicking on the Imagebutton, the value entered in the percentage field should be converted… 
- 
		3 votes1 answer1373 viewsGet Headertext from a column in a GridviewGoing through the event RowDataBound of a GridView I intend to obtain the value of headertext column but I’m not getting. An example I want to get: if (e.Row.RowType.ToString().Equals("Header")) { }… 
- 
		3 votes1 answer175 viewsGridview inheriting propertiesIn all my grid s I have to define many properties, I wonder if there is any way to define the properties only at one time in a single place. Grid example:… 
- 
		3 votes1 answer533 viewsxml load in gridviewIn my project, I need to select an XML file from some hard drive folder and then read its contents and show in a gridview. Right now, I can open the window to select the file, but I can’t read that… 
- 
		3 votes2 answers79 viewsAdd CSS to the Grid RecordI’m trying to add a bold in a record on the grid, but it appears as "<b>Nome</b>" and not "Name" as it should. I’m doing it for code behind, through a LINQ Follow my method… 
- 
		3 votes1 answer174 viewsChange color of a Row when VB expires . NetI have a database with the following tables: Data Emissão and Data Expira. So I want that when the date of Data expira is equal to or greater than Data Emissao, to row change color to Vermelho and… 
- 
		3 votes2 answers246 viewsUpload xml file to Gridview?In my project, I need to select an XML file (table) from my tablet and then read its contents and show in a Gridview. I don’t know how to start, does anyone have any idea how? I think with the… 
- 
		3 votes2 answers912 viewsProblems with special characters in Asp.net GRIDVIEWI am building a dynamic GRIDVIEW, where the information of each TD will be a DIV. exemplo: <td><div id="d1" class="redips-drag t1">z</div></td> I am filling the valve as… 
- 
		3 votes1 answer1299 viewsHow to include a column that dynamically demonstrates image in a GridviewI am generating a report and exporting to Excel, but as most reports the number of columns is dynamic and I am mounting the gridview dynamically. I need to demonstrate a column that displays images… 
- 
		3 votes1 answer142 viewsHow to place a Readonly column?I’m trying to leave only one column of GridView as ReadOnly, I’m doing like this: if (id_crm == 0) { textBox2.Text = Convert.ToString(cod_crm()); DataTable dat_itens = new DataTable();… 
- 
		3 votes1 answer285 viewsFill Grid dynamically with Dapper framework returnI have a screen written in VB.NET Winforms, where the goal of it will be to execute SQL commands without the need to open a sql studio. For simpler commands like delete, update, alter table among… 
- 
		3 votes1 answer722 viewsHow to add a link column in Gridview?I have the following code that generates my Gridview: protected void Page_Load(object sender, EventArgs e) { try { AlteracoesContrato alteracoes = new AlteracoesContrato(movimentacaoId);… 
- 
		2 votes1 answer2484 viewsHow to create a dynamic Gridview?Someone already created a GridView where there are already rows filled with values and in the last column of each row there is a LinkButton "Repeat" and when this LinkButton is clicked, repeats the… 
- 
		2 votes1 answer651 viewsHow to access child items in a Boundfield of a Gridview in Asp.Net Web Forms?I know in the middle of a GridView, an immediate item can be read with the tag BoundField: <asp:BoundField DataField="MeuItem" HeaderText="Meu item" /> But I get a mistake trying to do that:… 
- 
		2 votes2 answers987 viewsGridview ASP.NET c# data from the same tableI have the following table in SQL with the following fields (id, name, day week, active). id the primary key of the whole type; nvchar day nvchar week; active bit; and I have the following data in… 
- 
		2 votes1 answer399 viewsHow to display two pages of the same Gridview side by side?I would like to know how to display two pages of the same GridView side by side, if possible keeping the pagination on both pages at the same time. For example, if I have a GridView in that way: Num… 
- 
		2 votes1 answer459 viewsConvert ASP.NET datatables to different Excel SHEETSHow can I create more than one sheets converting different datatable for excel? My code: DataTable dt = new DataTable(); dt = Tr.Get(); GridView x = new GridView(); x.DataSource = dt; x.DataBind();… 
- 
		2 votes1 answer424 viewsRedeem a Datatable ID inside a GridviewI’m trying to rescue the ID of my client who is in a GridView, but I’m using a DataTable to fill the GridView. Datatable public DataTable SelecionarDT() { objDAO = new ClienteDAO(); DataRow dr;… 
- 
		2 votes2 answers1429 viewsImage layout dynamically after photo is capturedHow do I create a layout exactly like this (The layout is equal to both left and right): I’ll explain how I intend to do this and if possible help me because I don’t know how to do it this way: I am… 
- 
		2 votes2 answers5178 viewsPlace a red Gridview line if a cell has the false valueI would like a certain line from my GridView turn red if the corresponding cell in the closed column is false. My Asp.Net is like this: div class="GridMain"> <asp:GridView… 
- 
		2 votes0 answers592 viewsProblems with Gridview (Android) to display dataPersonal I am new to programming for Android and I have a problem regarding a situation in an application I am developing using Gridview with an Adapter class and a list of items(object) coming from… 
- 
		2 votes1 answer296 viewsGridview with only one line - Asp.Net C#I have a column in Gridview with Schedules, I made a scheme that takes from such an hour to such an hour for example: 8:00 to 8:30 and so goes to other lines. In all, until 6:00, that’s 20 lines.… 
- 
		2 votes1 answer74 viewsFailure to popular a gridViewI am having problems when displaying a gridView, it is not displaying the right data, it seems that this trying to display vertically, I have already changed the property Gridline to horizontal,… 
- 
		2 votes1 answer95 viewsHow to put a "show more" on gridviewHow to do this: Turn this around: The only thing I can imagine is putting a treeview inside the gridview, even so, I don’t even know if that’s possible. The doubt is only about the functional part… 
- 
		2 votes1 answer3512 viewsAdd buttons to the Datagridview cellI am developing a Windows Form C# activity control application for a company, however I would need to display activities such as buttons within the cell of GridView. I’ve tried to:… 
- 
		2 votes1 answer55 viewsonFling conflict with onSingleTapUp in GesturedetectorI have an application running on Android with a Gridview (grid). On this grid I need to detect various events and so I’m using a gesture detector. Only by clicking on a grid item, sometimes the… 
- 
		2 votes2 answers779 viewsHow to set read-only line of Gridview made with Devexpress?I need to put the lines of my GridView as read-only. I mean, I have one GridView which already contains some data, this data cannot be edited, but I can add new lines, and these new lines can be… 
- 
		2 votes0 answers184 viewsSearch Gridview Asp.net dataI have a GridView called grvListaFuncionario which is populated by data from my database. I am facing a problem when searching the data on it. private void Pesquisar() { DataTable table = new… 
- 
		2 votes1 answer432 viewsPlay value from a grid that is in form to another grid in another form C# windows formHello I’m here with another situation requesting help because there is not yet found in the surveys. I have a form that I put a Gridview, the form has button to open another query form and when I… 
- 
		1 votes3 answers1948 viewsSet value of a null or Empty ROW on a gridviewI bring a Datatable from the database and fill in a gridview, need to leave some ROWS blank or with nothing, but the fields are numeric and do not accept string or other kind. DataTable dt =… 
- 
		1 votes1 answer143 viewsGridview Change Row to ReadonlyHow can I change Row from a GridView to readonly? I need through values of one of the cells to allow or not editing of the line of GridView. 
- 
		1 votes2 answers3772 viewsGridview Get Textbox ValueI intend to obtain the value of a textbox of a gridview. This Textbox is created by RowDataBound. As follows: TextBox txtValor = new TextBox(); e.Row.Cells[i].Controls.Add(txtValor); For the… 
- 
		1 votes1 answer562 viewsFilling with Dynamic TemplatefieldI dynamically create the templatefield to my gridview, when I get to gridview is rendered, I get the error that the "C" element does not exist as column names. The code that error occurs is:… 
- 
		1 votes3 answers1945 viewsGridview TemplatefieldI need to change a specific Cell in GridView, but when I try to do it this way in RowDataBound: TextBox x = ((TextBox)e.Row.Cells[i].FindControl("ctl" + tx.PadLeft(2,'0'))) x.Enable = False; or in… 
- 
		1 votes2 answers1095 viewsCount selected Checkbox lines in a GridviewHow do I select a table (GridView), record and in the other GridView show the amount of CheckBox chosen from the previous table in the current table ? 
- 
		1 votes1 answer491 viewsInclude a search button inside a gridview c#cellI have the following problem: I have a gridView on a Windows form system that I am developing with c#. This grid will serve for the user to include items of a quote. In the product cell, where the… 
- 
		1 votes1 answer1330 viewsHow to get values from the first column which is a checkbox of a Gridview?I have a Gridview and I need to get the values from the first column of Grid. My first column is a checkbox, I need to check that they are marked and if yes get their values. 
- 
		1 votes0 answers53 viewsPage a very large listGrid in MVC - I have a lot of data to return and I didn’t want to bring all of a single see even why there is paging. How do I get 10 records? Which grid to use together with MVC and Entity… 
- 
		1 votes1 answer2554 viewsHow to change column header for a gridviewHow do I get a name I want to the column header of a gridview that is dynamically created in C# but not in ASP.NET please 
- 
		1 votes1 answer133 viewsComponent to replace GridviewI’m having a lot of problems with Gridview in Asp.Net that are taking me seriously, especially the paging and exporting part of the data. Is there any other free component on the market, which… 
- 
		1 votes1 answer566 viewsLoad Gridview with variable dataI have 3 variables whose values are changed within a loop for. What I’m trying to do is take these values that are obtained from the variables and load them into a Gridview. Here’s what I tried to… 
- 
		1 votes0 answers82 viewsHow to create a Cellvaluechanged event in Gridview ASP.NETI have a dynamic GRID, which after loading allows the user to modify it, changing the values of the columns by dragging the objects (DIV) between them. In Winforms, Datagridview has an event called… 
- 
		1 votes1 answer183 viewsGridview Asp NET disappears Sort after Click to perform UpdateI have my Gridview developed manually, the problem and that when I click to carry out the update my gridview ceases to be orderly and returns to its normal state. I intended that this would not… 
- 
		1 votes1 answer1167 viewsHow to disable editing and block adding Gridview linesI have a GridView that the user enters with some information and saves, I would like that after clicking save. put all grid in mode ReadOnly and also would like to block to insert or delete lines.… 
- 
		1 votes0 answers18 viewsClick on the Header Row of a Gridview does not place the data in the display fieldsI have a problem with running a gridview. When I click with the mouse on the Row header of a Gridview line, the data of the fields does not pass to Ecran fields set for this purpose. On another… 
- 
		1 votes3 answers228 viewsDifficulty to popular the GridviewI have a screen that I consult clients and fill a grid with the information coming from the bank, my project is separated by layers until where I am works, but I can not fill the grid with some…