Questions tagged as 'gridview'

3
answers

How to instantiate a GridView or a ListView for the same Activity?

In my app I'm presenting a list of items. I would like in certain situations to be presented with a ListView and in others as GridView . The situations are: Smartphone (portrait) - ListView Smartphone (landscape) and Ta...
asked by 09.01.2014 / 02:54
1
answer

Convert data datetime to dd / MM / yyyy

I have a GridView and I'm using TemplateField to display the date that is currently in the format 'string yyyy-MM-dd 00: 00: 00'. > I need to show this date only with dd/MM/yyyy . I have already tried {0:dd/MM/yyyy} and it doe...
asked by 25.05.2015 / 22:27
1
answer

Select GridView line with checkbox

function Selecionar(elemento,cordefundo) { var Inputs = elemento.getElementsByTagName("input"); var cor = elemento.style.backgroundColor; //manter a cor default do elemento for(var i = 0; i...
asked by 11.10.2015 / 21:30
3
answers

How to save and load data from a .txt to a gridview?

It's been two days since I've been looking for help with my problem, but everything I think does not help me. I'm doing a simple program, like an agenda, where I put all the records in my store. I do not need anything complicated. I made a...
asked by 27.11.2014 / 18:14
1
answer

EditTexts dependent on an Android GridView [closed]

I have two EditTexts, one Discount Value, another Percentage and an ImageButton to update, all are in a GridView. When you click on the ImageButton, the value entered in the percentage field must be converted to Double and assigned to the val...
asked by 02.03.2015 / 15:12
2
answers

Adding CSS to the Grid Registry

I'm trying to add a bold to a record in the grid, but it appears as " <b>Nome</b> " and not " Name " as it should. I'mdoingthisforcodebehind,throughLINQHere'smyViewUltimateShort()method:privatevoidexibirUltimoSorteio(){varapo...
asked by 27.11.2014 / 18:24
1
answer

Get HeaderText from a column in a GridView

When I go through the event RowDataBound of a GridView , I want to get the value of headertext of the column but I can not. An example I want to get: if (e.Row.RowType.ToString().Equals("Header")) { } else if...
asked by 03.06.2014 / 13:50
1
answer

Grid Fill dynamically with dapper framework return

I have a screen written in VB.NET WinForms, where the goal of it will be to execute SQL commands without the need to open an sql studio. For simpler commands like delete, update, alter table among others, it already works perfectly. Now, the...
asked by 03.02.2017 / 20:37
1
answer

How to put a ReadOnly column?

I'm trying to leave only one column of GridView as ReadOnly , I'm doing so: if (id_crm == 0) { textBox2.Text = Convert.ToString(cod_crm()); DataTable dat_itens = new DataTable();...
asked by 04.09.2016 / 18:06
2
answers

Load xml file into Gridview?

In my project, I need to select an XML file (table) from my tablet and then read its contents and show it in a GridView. I do not know how to start, does anyone have any idea how? I think with the start code you can understand what I want...
asked by 11.08.2015 / 19:09