All Questions
19 questions
0
votes
1
answer
88
views
When the width of the column in the DataGrid is not enough, how to set it to hide the characters at the beginning of the text?
I am using DataGridView in C#/.NET 6.0/WinForms. Is there a way to change the direction of hiding the text when the column width is not enough? I want to hide the text from the beginning (left) when ...
0
votes
0
answers
60
views
C# Winform Change the type of row for data grid view
There is a DataGridView component in C# Winform. It's easy to change the column type to checkbox or text. I wonder that how to change the row type like that?
I tried to find on the internet but there ...
0
votes
1
answer
331
views
C#: How can I programmatically loop through all controls on a Windows Form
I'm in the process of creating a front-end Windows Forms application, which will have multiple uses. One of those uses will be to allow the end-user to manage the contents of a database table.
At the ...
-1
votes
1
answer
59
views
Adding control inside Datagridview but not in grid
I need to add a custom scrollbar (already developped) INSIDE a datagridview, to effectively replace the default one. I insist on the inside because the border of the datagridview must include the ...
0
votes
0
answers
106
views
Is there a DataGridView that supports VirtualMode and hierarchical data?
I want to display data in a table in a Windows Form. I have an ArrayList that can have millions of entries and for that reason I'm using a DataGridView Control that is able to display all that without ...
2
votes
0
answers
736
views
c# create custom control - DataGridView Checkbox column
I'm attempting to create a custom control from dataGridView which includes a checkboxcolumn. I have added the code to produce this and added the newly created checkBoxDataGridView onto my form in a ...
0
votes
0
answers
252
views
How to set cells[i].controls C# Winform
I have been developing an C# asp.Net project and now I have to transfer it to C# forms. It is my previous code for inserting textbox to a gridview cell :
TextBox a = new TextBox();
GridView1.Rows[0]....
0
votes
1
answer
478
views
Controls overlapping in a panel after a threshold number of controls added to it
I have written a store procedure which returns a group of tables and their names.I am rendering them into a Panel. For the table name I have a label which holds the value "Table Name : " and a TextBox ...
3
votes
1
answer
2k
views
Removing Line Separator between two cells in DataGridView
I am doing some WinForms work, for DataGridView I have to show blank text for some cells in Grid Header, I want to remove the Line separator to give a user feel like its a single cell.
I will attach ...
0
votes
1
answer
678
views
DataGridView control not properly rendering
I am working on a DataGridView in VS 2012 using .NET 4.0
This DataGridView's data is populated by a direct SQL query and can have a lot of columns. The problem is that when there are a large number ...
0
votes
1
answer
680
views
Customizable table/label to make a matrix
I am trying to use Visual C# to make an editable row/column matrix. Essentially what I want to do is this:
The Row and Col values will be editable and i would like for the amount of cells to resize ...
0
votes
1
answer
201
views
Control to have editable multiple fields under a single column?
Ok I am asking something that's not conventional. I need to create view where there are users and days of week. I could use datagridview if I need to have only one value per user/per day. But I need ...
2
votes
2
answers
10k
views
c# readonly DataGridView with one enabled cell
I have readonly datagridview, I need in some specific case enable one cell after doubleclicking row (make readonly=false and make focus on this specific cell in current row (like entering it - the ...
0
votes
2
answers
1k
views
How to add checkbox control at the Header of DatagridviewCheckBoxColumn?
Can anyone please provide the C# coding to add checkbox control at the Header of DatagridviewCheckBoxColumn.
8
votes
3
answers
16k
views
How can I get the size of scrollbars on a DataGridView control?
How can I get the height of horizontal and/or width of vertical scrollbar that appears on control (e.g. DataGridView)?