Questions tagged as 'datatable'

2
answers

Datatable column row with more than one attribute

I have a multi-column Datatable. One of them is a column that should display more than one attribute on each row of that column because it is part of a ManyToMany relationship. This column will receive the attributes of a List. I want to know ho...
asked by 28.03.2018 / 00:44
1
answer

Datatable slow loading many results

I have a database with about 500 records with system requests, but I need to display those records in the DataTable for better organization and search. When loading the page it takes a long time to display the data in the DataTable. PHP:...
asked by 07.06.2018 / 15:16
1
answer

CommandButton - Error Calling Method

I'm a beginner with JSF , web development, and I'm having a problem using the Dialog component, PrimeFaces , within DataTable . The idea was this: We have a gift list for a bridal shower, the party guest chooses the p...
asked by 02.11.2015 / 21:30
3
answers

Set value of a null or empty ROW in a gridview

I have a Datatable from the database and I fill in a gridview , I need to leave some ROWS blank or nothing, but the fields are numeric and do not accept string or other type. DataTable dt = ClassesControle.CNProduto.listaProdutos(nu...
asked by 21.03.2014 / 17:06
2
answers

Populate DataSet with DataTable

In C #, how do I declare and populate a DataSet with a DataTable? My idea is to pass the resulting data from a query in the Database to the DataSet, then fill a Report with that DataSet. Is it possible?     
asked by 10.10.2014 / 15:02
2
answers

How to store information from a SELECT into variables

Good evening community, I have a stock program that I'm finishing and I want to do a validation for it always check if you have enough of that product before adding it to the sale. For this I used a simple math operation, where one variable stor...
asked by 07.12.2016 / 00:30
1
answer

Correct method to get ComboBox value populated by DataTable

What is the correct way to get the value of a ComboBox populated by a DataTable ? I'm using the following code: private void ComboBox3_SelectedIndexChanged(object sender, EventArgs e) { Consulta_cidade cidade = new Consulta...
asked by 22.07.2016 / 01:59
1
answer

Delete a Specify Row from a DataTable

How can I delete a specified row from a DataTable and then reload a ViewState with the rest of the rows left? I have the following case below, but I am not able to delete directly from DataTable . protected void rdItens_Del...
asked by 25.11.2015 / 14:51
1
answer

Return number of cells according to parameter of a datatable

I need to get duplicate cells from a particular column, is there any language function that returns those duplicate cells? Example: coluna-1 coluna-2 1 87 2 9 3 12 1 17 2 28 I would ha...
asked by 06.12.2017 / 20:48
1
answer

Adding C # DataTable columns with Linq

I have a DataTable that contains a column named SubTotal . I would like to add the total value of this column. I tested some examples: object sumObject; sumObject = table.Compute("Sum(Amount)", ""); This too: this.LabelCon...
asked by 15.02.2017 / 21:08