20,432 questions
0
votes
1
answer
58
views
Winform VB.net Datagridviewtextboxcell selectionstart and selection length
I Have a question about a winform:
I need the selection start and length of textboxcell.
As it is now i always get the start and length of a previous edit (eg. the values are one edit behind the ...
0
votes
0
answers
50
views
Disable row resizing on datagridview c#
I wounder how to disable or prevent users from resizing Datagridview Rows and also disable the click on the horizontal line of the rows.
I have tried setting the DataGridView.AllowUserToResizeRows to ...
0
votes
1
answer
65
views
Focus DataGridView control on a specific cell
I know there are multiple posts on this but their solution do not work for me.
In a WinForms application in .Net 8.0, I have added a DataGridView control.
Trying to set the focus to a specific cell ...
1
vote
1
answer
33
views
Setting the vertical alignment of grid cells
Is there a way to align the top of the cell entries in a grid row when the cells contain text that spans more than one line?
Example:
Test
'F'⎕WC'Form'
'F.G'⎕WC'Grid'('Values'(1 2⍴('foo',[0.5]'bar')'...
0
votes
1
answer
33
views
How can I add items to DataGridViewComboBoxColumn
I have a a DataGridView which has a list assigned as a datasource and that list contains objects, in that list I have a List which contains objects and this object has a 'name' field. I created an ...
0
votes
1
answer
43
views
C# DataGridView, automatic RowHeaders size calculation
I have a custom Gridview inherit from DataGrieviw, with an automatic RowHeadersWidthSizeMode set.
RowHeadersWidthSizeMode = DataGridViewRowHeadersWidthSizeMode.AutoSizeToDisplayedHeaders;
It seems ...
0
votes
2
answers
61
views
How can I optimize loading large datasets in a DataGridView in C# (.NET Framework)?
I'm developing a Windows Forms application in C# that loads a large dataset into a DataGridView. When I load more than 10,000 records, the UI becomes very slow and unresponsive. How can I improve ...
0
votes
1
answer
37
views
how to pass the concatinated column from datagridview to another form with specified text boxes? vb.net, mysql xampp
im using vb.net and I've ran into a problem where i have to concatinate names (e.g. sName, fName, MI) in mysql and it successfully shown in my data grid but the problem was I cannot pass the ...
0
votes
1
answer
58
views
Where does DataGridView get its default DateTime format?
I am trying to determine where the DataGridView is getting its default format string to convert a DateTime to a String.
As seen in the screenshot, on my system the date format used is yyyy-MM-dd h:mm ...
0
votes
1
answer
34
views
How to allow user to edit column names of a DataGridView
This post generally asks how to edit the column names of a DataGridView. Here, I'm specifically interested in allowing the user to re-name the displayed column headers themselves.
This answer points ...
0
votes
1
answer
52
views
How can I add specific cells from one DataGridView in form2 to another DataGridView in form1
I am working on a .NET 8, C#, SQL Server project which is a stock management system.
My issue is: I have a DataGridView in one form which is used to save invoices like this screenshot:
enter image ...
0
votes
1
answer
76
views
Transposed editable DataGridView from list and datatable with vb.net
I'm Trying make Transposed editable DataGridView from list and datatable with vb.net.
so in Datagridview1 Transposed editable (From list) with result in Datagridview1 non Transposed and non editable ...
0
votes
0
answers
58
views
ReasonsGridView_CellFormatting messes up the datagridview display
I looked at this post:
How can I change the background color of a row from my datagridview if column 1 holds a string with "Aborted"?
to implement the change I want. But there's a ...
0
votes
0
answers
29
views
how to make the user not repeat the item (productname) in the datagridview with the cellendedit and EditingControlShowing events in the vb.net
I'm trying to make the user not repeat the item (productname) in the datagridview with the cellendedit and EditingControlShowing events in the vb.net.
You can see the gif file in this post 2 items are ...
0
votes
0
answers
20
views
how to maintain beginedit with ProcessCmdKey in datagridview with vb.net
I'm trying to maintain beginedit with ProcessCmdKey in datagridview with vb.net
So I want to tab once in keyboard then beginedit in the productname column and double tab or twice tab in keyboard then ...