Questions tagged as 'gridview'

2
answers

Show only certain data in a yii2 grid?

Edito (08/22/2018): The problem is already solved, I add the corrected code and it works so that it can be used as a guide by those who need it, thanks to the user Sr1871 who was the one who gave the answer. Well I know that maybe my query ma...
asked by 14.08.2018 / 19:56
0
answers

Maintain page index in gridview after a PostBack

I'm occupying a gridview format which is applied with the following function, this includes a search block, a filtering by number of records but the problem is that when the number of records exceeds the limit and this stops to have more of a pa...
asked by 23.05.2018 / 16:19
2
answers

display a message instead of displaying the result of the search in a gridview

I'm new to this in C # and I have this project which asked me that they no longer want to show the data in a table, they just want a message that says "that person is found" and if your rfc is not in that one Base says 'person is not in this are...
asked by 04.05.2018 / 17:00
0
answers

ForeColor in Gridview column

I have a condition on the page load of my page to disable a LinkButton and change the color of the letter. The Enabled attribute works but ForeColor does not, here's my code: if (!Page.IsPostBack) { LlenarGridview(GridView1_Persona, Datos)...
asked by 12.03.2018 / 01:32
1
answer

element.style before GridView

I have a GridView inside a /table/tr/td/grdviuw tag. My gridviuw has a css. The problem is that when it is rendered, it leaves a space apparently after the grid and the buttons that I have below the grid look very low, far from the gri...
asked by 09.05.2017 / 15:41
0
answers

Text + Image + Text GridView

I'm trying to put a img that I receive in Blob format within a cell of Gridview , I convert it to url by the following method: cmd1 = new OracleCommand(); cmd1.Connection = conn1; cmd1.CommandText = "select...
asked by 20.04.2017 / 17:28
2
answers

Interpret br / in a gridView cell

I have to separate by marks of \n the content of a cell of GridView to get different lines to appear in a cell. The code in which I find myself is the following: Modifying the DataTable : cmd = new OracleCommand();...
asked by 19.04.2017 / 17:13
0
answers

Insert datagrid data view C # ASP.NET [closed]

I am creating a sales system, at the time a sale is registered I want the products that are in a datagridview with the ID of the sale inserted In my SALE class I have the following code: public string Insertar(Venta Venta, List<DetalleVe...
asked by 30.07.2016 / 04:46
1
answer

Remove a row from my ASP.NET gridview

How can I remove a row from my gridview in asp.net once I select a record, without affecting the database, ie the list is in memory. This is the code as I charge my GriewView: private void Cargar() { srvLeyenda = new Srv_Ley...
asked by 10.09.2018 / 06:15
2
answers

Select some gridview rows to display in ASP.NET webform2

Good morning, I have a gridview to which I insert data with a datatable which works perfectly, it complicates me when placing a row checkbox so that the user can select the row he wants to perform his management. This is the HTML code:...
asked by 25.01.2017 / 21:56