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
0
votes
1 answer

Datagridview Sorting with manually added columns

I have a datagridview control bound to a MySQL database column. While loading the table to datagridview, i am adding one Column and 8 rows to the datagridview. Values to these manually added coluns and rows are also programitically added. All is…
Mahadev
  • 856
  • 1
  • 17
  • 44
0
votes
1 answer

How do you sort an unbound DataGridView filled from a DataTable with added rows?

I am having some trouble with a sorting an unbound DataGridView. I am filling a DataTable from a StreamReader, and then manually transferring the items from the DataTable to the DataGridView. The AllowUserToAddRows property is set to true on the…
J2Tuner
  • 411
  • 1
  • 5
  • 17
0
votes
1 answer

Counting data from a datagridview

I've been trying to find a solution to this problem all day long but I have been unable to come up with the solution by myself or find it up online. My problem is the following: I am creating an application in vb.net 2010 I have an Access DataBase…
0
votes
1 answer

c# DataGridViewLinkColumn have cell value as image instead of text (Clickable/Linkable Image)

Is is possible to have a image instead of text in the DataGridViewLinkColumn. In the below example, instead of "search" text, can we have a search icon in the cell!? private void Form1_Load(object sender, EventArgs e) { …
Akaanthan Ccoder
  • 2,159
  • 5
  • 21
  • 37
0
votes
1 answer

Check all values of specific column to define the datatype in DGV

I'm asking your help to know if exists a fast method to check if all the values in a specific column of a DataTable/Datagridview are DateTime or numbers. I'm trying to make a generic method to put specific formats in any column in a DGV. I have…
MiBol
  • 1,985
  • 10
  • 37
  • 64
0
votes
1 answer

sort columns with different type in data grid view

I have a data grid view with columns : IdentityNumber , Name , Date . Each column represents different types of values . identityNumner is an integer , Name is a string , and date is DateTime. My goal is to click on a column's header and the sort…
subirshan
  • 323
  • 2
  • 7
  • 20
0
votes
1 answer

Telerik ComboBox real time search in Items (IsComboBoxEditable allow just to search from start)

I'm currious if it is possible to check (while writing in combobox) if an item containts phrase not only starts by and how to achieve this effect ?
0
votes
1 answer

C# DataGridView: Value disappearing in dynamic added column

I am coming across something strange or maybe it is the way it works and its just my lack of understand of how the datagridview works. I am dynamically adding a column when I click on a button private void btnAssign_Click(object sender,…
Peter Sun
  • 1,675
  • 4
  • 27
  • 50
0
votes
2 answers

remove redundant columns in selectable query datagridview

I have a single Datagridview on one of my windows forms that I intend to have the user select a query from a combo-box drop down menu, click a button, then the query results get displayed on the datagridview. That is all working properly, however…
almg
  • 311
  • 1
  • 3
  • 10
0
votes
1 answer

Color row based on DataGridViewComboBoxColumn selection

I'm using C# in Visual Studio 2010. I have a DataGridViewComboBoxColumn bound to a DataSource. I would like for when a selection is made from the combobox, the entire row to change color. I'm not sure how to do this because the comboboxes don't have…
0
votes
1 answer

How to add a new column to datagridview after binding it with database

I have a dataGridView in my winForm (C#) application to display a list of Players. I have successfully bound it with the database and its showing all columns i.e PlayerName, Age, Runs etc. correctly. Now i want to add one more columns i.e…
prograshid
  • 876
  • 3
  • 12
  • 32
0
votes
2 answers

Unable to check CheckboxColumn in DataGridView

I have a Datagridview in which there is a checkbox column. I want to check a checkbox of particular cell. I have used below code in form load after binding the grid. But it's not working. I am binding the grid using for…
Raghubar
  • 2,768
  • 1
  • 21
  • 31
0
votes
0 answers

DataGridViewMaskedTextColumn for DataGridView in Winforms

I am trying to mask DataGridView DateTime column, to achieve this I tried custom control made by J Thomas form codeproject Link; after adding in DataGridView and while trying to enter(keypress) datetime value i am getting below error…
Kumar Gaurav
  • 899
  • 5
  • 19
  • 35
0
votes
1 answer

hide datagridview include all checkbox

I only want 1 row to display in a DataGridView, so I want to somehow hide the checkbox that appears in the column header. This checkbox is intended to select all the checkboxes, which I don't want to allow users to do. I'm trying to avoid hiding…
micahhoover
  • 2,101
  • 8
  • 33
  • 53
0
votes
1 answer

How to get dragged column in datagridview when AllowUserToOrderColumns = true

I have a windows form application in which i have a datagridview with AllowUserToOrderColumns = true, then user change column order via drag and drop. How can i know which column is dragged ?