datagridviewcolumn Questions

9

Solved

I have a WinForms application with a DataGridView, which DataSource is a DataTable (filled from SQL Server) which has a column of xxx. The following code raises the exception of ArgumentExcepti...
Nickelsen asked 18/11, 2012 at 1:15

2

Solved

Is it possible to have both DataGridViewComboBoxCells and DataGridViewTextBoxCells in a single DataGridViewColumn? Or am I absolutely restricted to having one type per column?
Plagio asked 3/10, 2011 at 6:17

6

For c = 0 To grd.Columns.Count - 1 grd.Columns(c).Resizable = DataGridViewTriState.True Next c That allows all the columns in my DataGridView to be resizable EXCEPT the last column. Why? I DO g...
Upholstery asked 10/5, 2011 at 14:10

6

I'm setting the following properties for a DataGridView in my C# project ... sampleDataGridView.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter; sampleDataGridView.ColumnHea...
Cellule asked 5/3, 2012 at 9:3

10

Solved

I want the user to be able to search for a number in a column in the DataGridView (dgv). The dgv can hold many records. Each record has a Project Number. So I want the user to be able to search for...
Mosley asked 1/11, 2012 at 9:9

10

I have a small app in c#, it has a DataGridView that gets filled using: grid.DataSource = MyDatasource array; MyClass hold the structure for the columns, it looks something like this: class MyDa...
Flamen asked 5/8, 2011 at 18:9

7

Solved

How can I right-align text in a DataGridView column? I am writing a .NET WinForms application.
Reinforce asked 8/3, 2011 at 9:0

10

Solved

I need to add my DataGridViewButtonCell to Column, and I need to name each other with different names. But I didn't find any text properties. Can anyone help me, please? i do that stuff DataGr...

5

Solved

How to let "DataGridViewTextBoxColumn" in DataGridView supports Multiline property?
Whitt asked 13/10, 2009 at 12:19

5

Solved

Is it possible in a single hit to remove all columns from a datagrid? I know I could loop though and remove them one by one, or remove the whole thing and create it. But it is possible to simply...
Scrogan asked 15/9, 2011 at 12:37

5

Solved

DataTable dt = new DataTable(); dt.Columns.Add(new DataColumn(gridColumn1, typeof(bool))); I was expecting the result of the below line to include info about the DataColumns Type (bool): ?dt.C...
Squiggle asked 12/3, 2012 at 2:20

1

Solved

Please see the attached screenshot. How do I avoid/delete the extra column marked in red? Basically this column act as a row indicator.
Sumo asked 29/8, 2018 at 13:17

3

Solved

I want to detect the cell value has been changed of a specific column. My Datagridview name is DGV_Products and it has 6 columns. Product ID | Descriptions | Quantity | Unit Price | Discount | Am...
Praedial asked 29/7, 2014 at 16:30

2

Solved

Why do I get the exception that Column Name is not found for MyEntity as well as FullName Columns? Although I see the column names being displayed in UI. InitializeComponent(); dataGridView1.Sele...
Eisen asked 20/2, 2014 at 16:22

2

Solved

I have seen a lot of posts on SO about weird behaviour of Columns and their visibility in particular when refreshing the grid and dynamically building the columns in the list, but haven't found a s...
Dipsomania asked 19/11, 2012 at 12:48

2

Solved

I'm having problem with masking the password column. The code below works, but it doesnt work the way I want. While editing it do mask the password but when I am done and continue to the next datag...

2

I have a strange problem and it's probably a simple fix, but after much research, I cannot seem to find a solution. I have a DataGridView on which I'm trying to center the column headings, but the...
Devora asked 29/12, 2010 at 1:21

1

Solved

For example, I have a value like this : 41607.2069444444; 41607.2068402778; 41607.2072222222; this is calculation of dateTimeOrigination from CDR, in excel where i change the format cell to type...
Edme asked 13/2, 2014 at 9:9

4

Solved

I am working with an object which has sub objects within (see example below). I am attempting to bind a List<rootClass> to the datagrid. When I bind the List<>, in the cell that contain...
Katinka asked 2/1, 2009 at 15:44

1

Solved

I've got a BindingList binded as the data source of a DataGridView; one of the TSource properties is binded to a DataGridViewCheckBoxColumn, but the data source is updated not when a click on the c...
Intermix asked 24/6, 2011 at 13:10
1

© 2022 - 2024 — McMap. All rights reserved.