Questions tagged [datagridviewcolumn]

In WinForms DataGridViewColumn class represents a column in a DataGridView control.

In WinForms DataGridViewColumn class represents a column in a DataGridView control.

516 questions
4
votes
1 answer

Creating a DataGridView with a Radiobutton column

I'm trying to create a DataGridView column hosted with Radiobuttons. I've been following this MSDN article. Although I have changed the code from the tutorial to write my own classes, it doesn't work as expected. The thing is I'm not entirely sure…
Isuru
  • 30,617
  • 60
  • 187
  • 303
4
votes
2 answers

DataGridView autoComplete comboBox column not retaining values on initial cell leave

I have a bound dataGridView with an autoComplete combobox column and the autocomplete is working except that am observing one behaviour thats abit irritating. When i type text in the autocomplete cell for the first time and move to the next cell…
3
votes
1 answer

Resizing DataGridView columns without affecting adjacent ones?

I'd like to implement a feature whereby allowing a user to resize a DataGridView column, but without affecting the adjacent columns. I've noticed in many programs that you can resize a specific column, and all the columns to the left or right will…
Mirrana
  • 1,601
  • 6
  • 28
  • 66
3
votes
1 answer

DataGridView change a cell content that's condition up to another cell

I have a list of products and I am trying to add them into a datagridview. Each product has a property like id, name, brand, price, stockAmount, isPackaged, and product type properties. What i want is to make invisible the IsPackaged boolean and if…
Demir
  • 799
  • 3
  • 16
3
votes
1 answer

DataGridView column with buttons for only some entries?

I have a DataGridView that needs a delete button for each row that has data: some rows may not have data. The DataGridViewButtonColumn seems to put a button in every cell, and I haven't been able to find a way to invisibilify (or perhaps even…
Smashery
  • 57,848
  • 30
  • 97
  • 128
3
votes
2 answers

fill the filter values of a column by it's own values in kendo

I have a kendo grid which is filled with some JSON data, in the filter window in the grid, you can select a condition Type and then fill the condition value text box and then filter the grid based on your selection. now I have a column that is…
Farzad Karimi
  • 770
  • 1
  • 12
  • 31
3
votes
2 answers

Custom Binding of multiple fileds in Custom DataGridViewColumn(WinForms)

I have a question regarding a data binding(of multiple properties) for custom DataGridViewColumn. Here is a schema of what controls that I have, and I need to make it bindable with DataGridView datasource. Any ideas or a link to an article…
Vera
  • 51
  • 2
  • 4
3
votes
2 answers

Highlight groups of table columns

I have a column for which I need to highlight adjacent columns. For the below example fiddle: …
Zameer Ansari
  • 28,977
  • 24
  • 140
  • 219
3
votes
1 answer

add datagridviewcolumn property designtime

I have this problem, I created my own datagridviewcolumn and I wish add some properties that you can change in designtime editing... here is my code: private int nMaxLength; [Description("Fondoscala valore"), Category("Sea")] public int MaxLength { …
ghiboz
  • 7,863
  • 21
  • 85
  • 131
3
votes
1 answer

Can I FORCE the filter button to show on my DataGridViewColumnHeader?

I have a C# WinForms DataGridView that by default does not (and cannot) have filtering enabled. The result is that when I display the DGV there are no filtering buttons displayed. As opposed to using a DataTable (not an option in my case) I would…
CJe
  • 1,928
  • 3
  • 24
  • 53
3
votes
1 answer

Custom DataGridViewColumn value disappears after loosing focus

I have created a custom DataGridViewColumn for my project in WinForms. The control renders perfectly, but once I input the value and move to another cell, the value disappears and comes up as null when I check in CellEndEdit. Following is the…
progrAmmar
  • 2,606
  • 4
  • 29
  • 58
3
votes
1 answer

Wpf: Hide GridViewColumn in Listview

I have a GridView inside a Listview And there are several GridViewColumn inside Griview. Now i want to hide one of these columns I wrote this :
Vivek Saurav
  • 2,235
  • 4
  • 25
  • 46
3
votes
1 answer

c# datagridview row width automatically increases on scrolling

My Datagridview contains DateTimeColumn which overlaps the another next row column on scrolling. I had set the DatagridView properties like AutoSizeColumnsMode : Fill AutoSizeRowsMode: AllCellsExceptheaders AllowUserstoAddRows: True But it show me…
manraj
  • 151
  • 7
3
votes
1 answer

C# populate DataGridViewComboBoxCell from dataset and get the selected value from database

I need to add different values from database to my DataGridViewComboBoxColumn from Table 1(id,name,...) and must have selected value(name) it. My code: SqlDataAdapter coursead = new SqlDataAdapter("select * from tbl_armycourses",…
3
votes
1 answer

Display Icon and string inside Cell in DataGridView

I have 2 variable I would like to display in one cell of a DataGridView. Icon stockIcon; Int stockStatus; I already looked at http://msdn.microsoft.com/en-us/library/7tas5c80.aspx But I think its way to complicated and don't show how to display to…
gulbaek
  • 2,481
  • 13
  • 44
  • 65
1 2
3
34 35
Number First Name Last Name