Questions tagged as 'datagrid'

0
answers

Problem writing to datagrid column

I've broken my mind about it, but I can not do it haha I need the second column of my grid to do an arithmetic mean of the two values in the previous column and row. In this print, for example link , Xi should have given 2,66 but gave 0,...
asked by 24.03.2018 / 06:39
0
answers

Problems changing color of rows in a DataGrid in C # Wpf

I am having problems changing the color of the DataGrid rows, I use the following function int i = 0; private void gvDados_LoadingRow(object sender, DataGridRowEventArgs e) { DataGridRow rowContext = e.Row; if (rowContext != null) {...
asked by 26.09.2017 / 22:23
1
answer

Different layout in last row of datagrid

I have datagrid where I show values referring to the beginning and end of a period. For this, I created columntemplate down with 2 textblocks , but in the last line, I show a value that is the difference between these 2 first...
asked by 21.08.2017 / 16:53
2
answers

How to disable double click on the header of a DataGrid?

Double-click grid method: private void grid_MouseDoubleClick(object sender, MouseButtonEventArgs e) { if (e.LeftButton == MouseButtonState.Pressed && //Verifica clique com o esquerdo uldPo00100.SelectedItems.Cou...
asked by 26.03.2017 / 22:58
0
answers

Row Header definition of a DataGrid across the rows of a column of a DataTable using C # WPF

I have a DataTable with the following information: Column1 | Column2 1 | A 2 | B 3 | C 4 | D With this DataTable I would like to load a DataGrid using the first column of the DataTable to be the Row Header, thus A...
asked by 10.02.2017 / 19:50
1
answer

DataGrid - Last column lengthens too long

I have a datagrid displaying data from a table in a MySQL database. If all columns are with Width="Auto", when resizing the window the grid does not match. If I put it in the last column Width="*", it works as I wanted, following the resizing of...
asked by 08.11.2016 / 22:49
1
answer

Customizing datagridview in C #

I'm doing a project and I'm having customization issues in my datagrid, as the information in the two textbox returns in the same datagrid I can not customize the header of the two, but rather just one, does anyone know how to sort it wit...
asked by 13.05.2016 / 01:36
0
answers

Binding in Datagrid - Can not access a discarded object

I have datagrid with evaluations whose first column is the PATIENT NAME. But at the time of putting Binding Paciente.Nome it gives error. Within evaluation there is a patient object. DATAGRID CODE <DataGrid x:Name="DataGr...
asked by 18.05.2015 / 14:34
1
answer

Select Rows from a DataGrid and send to an Array

I have an application in WPF where I have a DataGrid with various information. I would like the user to be able to choose multiple rows and store the row information in an array (or not) so I can send it to another screen and play in an...
asked by 09.06.2015 / 17:30