Questions tagged as 'datagrid'

1
answer

Maintain DataGridView format when doing C # filter

I happen to have a DatagridView with the following format (ver Imagen) (Orange -> CheckBox and white disabled -> CheckBox activated, it turns out that I want to filter this DataGridView and I do it like this: public...
asked by 18.10.2018 / 17:12
2
answers

Load string in DataGridView

I create a DataGridView with a CheckBox column to be able to mark one or another row. As data source of the DataGridView I pass a list of strings. When I passed the list, I expected to obtain a datagridview that showed me as the first column,...
asked by 30.01.2018 / 12:19
1
answer

Add content from rows of a DataGridView and unstick it in a Textbox

I am developing an application for the control of labels for the company where I work. I am working with a DataGridView which stores the data entered from the first Textbox as shown in the following image: What you do until you press th...
asked by 09.08.2018 / 19:42
1
answer

How to truncate decimals in datagridview c # column?

I have a DataGrid that receives your information from the database through an SP, in one of the fields, I need to truncate to two decimals instead of rounding it up so that if I have a value as 99.9999578 , stay in 99.99 and...
asked by 31.08.2018 / 19:59
1
answer

How to clean the contents of a DataGrid?

I have a (WPF) window and a C # code that contains the following One button: <Button x:Name="btnBuscar" Content="Buscar por" HorizontalAlignment="Left" Margin="157,10,0,0" VerticalAlignment="Top" Width="85" Height="30" Click="btnBuscar_...
asked by 09.04.2018 / 07:38
1
answer

Does not order data with format ##, ## 0.00 VB.NET

I have an application that makes some calculations and I save them in a datagridview, to a column I give the currency format in this way: Format(totalMarca, "##,##0.000") So far so good, but I try to sort the data and do not do it. The fo...
asked by 27.03.2018 / 17:43
2
answers

Set the checkbox of a DataGridViewCheckBoxCell to true

I load a DataGridView through a list. datagridview.DataSource = listaVariables; This DatagridView, is formed by a column (the first) that is of the DataGridViewCheckBoxCell type. What I want to do is that, depending on a property of the...
asked by 13.09.2017 / 14:01
1
answer

How to add rows and columns to a DataGrid in Compact Framework 3.5

I'm new programming in C # and I'm making an application for a Windows 7 embedded device in which a DataGrid will be used but I can not find the way to add data and columns, in the 3.5 framework if the following code works for me: mydatagrid.C...
asked by 12.10.2018 / 21:43
0
answers

Help with datagridview formats

I'm trying to make a drop-down in a datagridview. I almost finished it. but I have some things that I do not know how to solve, for example in my datagridview, I have counters in the gray strip, this counts the quantity of products that there ar...
asked by 06.11.2018 / 17:48
1
answer

Change the contents of the columns in DataGridView [closed]

I am developing an application for a tag calculation within the C # language. Annex photo: What I intend to do is insert a DataGridview but according to the option that is selected: Child, Lady, Gentleman the name of the column headers...
asked by 08.08.2018 / 23:02