Questions tagged [datagridview]
DataGridView is a Windows Forms control used to display and edit tabular data.
20,363
questions
0
votes
0
answers
21
views
DataGridView in winforms
when i click on a datagridview, it makes a table to show an object(default constructor of my class) that appears, but i don't make it by myself. i use a bindinglist and dk how to fix the problem
...
-1
votes
0
answers
47
views
It's strange to set datagridviewrow invisible
this is a datagridview bind to a datasource:
DataTable dt = new System.Data.DataTable();
dt.Columns.Add("ID");
DataRow dr = dt.NewRow();
dr["ID"] = "0";
dt.Rows.Add(dr);
...
0
votes
0
answers
6
views
datagridview How to hide header border for specific column vb.net
How to hide header border for specific column ??
e.AdvancedBorderStyle.Left = DataGridViewAdvancedCellBorderStyle.None
Just removed border for content cell
0
votes
1
answer
33
views
c#- Every time a buttton is clicked related item (Button name as Bread) count should be incremented in Data Table row of data grid view
int bread = 0;
DataTable dt = new DataTable();
DataRow dr ;`
private void Form1_Load(object sender, EventArgs e)
{
dt.Columns.Add("Food");
dt.Columns.Add("...
0
votes
0
answers
26
views
How to Reconcile one query with another in MS-ACCESS database with VB.NET
I want to reconcile one query with another in the MS-ACCESS database with VB.NET .
So I want to reconcile which is loaddata1 with loaddata2 which is for columns QTY_STOCK,QTY_STOCKIN,...
0
votes
0
answers
53
views
Make text in ReadOnly DataGridViewCell selectable
Hi I'm currently working on a project, where I have a windows forms with a DataGridView.
The user should not be able to change the values of a cell but it was requested, that a single word from a ...
1
vote
0
answers
42
views
How to refresh or reload binding source in datagrdiview with vb.net
After the update I tried to recall "loaddata" but the result in the datagridview does not match if I close the debug form and then re-debug the form then the result of the new datagridview ...
-1
votes
0
answers
27
views
C# Last Checked Data in DatagridView CheckboxColumn returns false
I have a gridview with checkboxcolumn. when i do multiple checked on row, the last checked row returns false. heres my code
the last checked cells doesnt show (00000581)
0
votes
1
answer
49
views
related DataGridViews in C#
I have two Datagridviews in my form, one of them shows list of "authors"(name) and the other one shows list of books (title ,author, year, price).
in form load it show all the books, but i ...
-1
votes
0
answers
15
views
Why when updating from DataGridView via bindingsource with dapper in vb.net successfully update to the database but often error warning appears [duplicate]
Is there something wrong with my code? and even though it successfully updates to the database but an error warning appears object reference not set to an instance of an object
Thanks
Private ...
0
votes
0
answers
57
views
How to create a bindinglist with dapper on vb.net
So I want to without changing the function of the existing method because I will change all the function methods in the service whether it is a solution so that I can create a bindinglist by ...
0
votes
0
answers
38
views
Resave the DataGridView contect into database
I am saving DataGridView data into SQL database which is running ok. I want to resave the grid but first want to delete the existing rows of same number PO from database. For this i used Delete ...
-1
votes
0
answers
21
views
I want to use "add project data source" but see only "add new project data source" in the datagridview tool while working on a form using vb.net
DataGridView Tool
I am expecting to see "Add Project Data Source" instead of "Add new Object Data Source" . I will be able to select the database and table name from Project Data ...
0
votes
0
answers
26
views
c# textbox databinding update
I have a form that have a datagridview & textbox binding to a datatable(dt)
When press the button, datagridview, textbox can normally update the value
but when I Input a value to Column1
It only ...
0
votes
1
answer
26
views
WPF DataGrid2D ItemsSource Memory Leak
I have a graph item and matrix item. Graph item is canvas where i draw ellipses and lines. In Matrix item I contains matrix. And I used this library
(xmlns:dg2d="clr-namespace:DataGrid2DLibrary;...
-1
votes
2
answers
36
views
VB.NET and DataGridView: how read a specific Cell value
I have a DataGridView of 3 columns and 3 rows (it's just an example). I would like to read only the value of a specific cell (in this example 2x2). How do you do this? I try this code but visual ...
-1
votes
1
answer
43
views
How to Add Rows from DataTable to DataGridView That Is Already Populated Data in vb.net
I tried it has not worked therefore it does not add rows in the DataGridView please guide me. Is the code I applied something wrong please guide
Thanks
Below is the code I used
Dim pservice As New ...
0
votes
0
answers
38
views
I have problem with my dx-file uploader is not working inside dx-data-grid(Angular ,T.S.) dev extreme version 21.2.5
tab.copmonent.html
<div id="data-grid-demo">
<dx-data-grid
id="gridContainer"
[dataSource]="dataSource"
keyExpr="ID"
[showBorders]=&...
0
votes
0
answers
47
views
Creating a progress bar column when setting the datasource
I created a DataGridViewProgressBarColumn from MSDN
Works fine when adding manual rows and columns. However working with databind it does not display the Cell with progress.
Removing and adding a new ...
0
votes
0
answers
31
views
Export issues with the MUI-X Data-grid (pagination, image format, optimization)
Description:
Problems:
Excel Export with server Pagination:
Difficulty exporting all data-grid pages to Excel at once. Export only downloads currently visible rows.
Is there a built-in or ...
-1
votes
0
answers
19
views
How to remove space in mui datagrid
This is a mui datagrind table,I am using mui/x-data-grid: 6.12.1,In older version it was fine like the alignment was correct but after changing the mui/x-data-grid version to latest i am getting this ...
0
votes
1
answer
64
views
send a data to another form by choosing datagridview row and pressing a button (C#)
I have a DataGridView in my form that shows some data.
The selection mode is FullRowSelect.
I want when user select a row and then press edit button, it store ID text from selected row to a variable ...
-1
votes
1
answer
45
views
how directcast bindingsource datagridview databound List in VB.NET
after I delete in row datagridview then I update to database with "BTNUPDATE" but there is an error is there something wrong with my code.
if binding directly to datagridview without binding ...
0
votes
0
answers
28
views
Relationship tables with Entity Framework, SQL Server and VB.net
I have a problem and I can't solved it. I want to show a datagridview with a entity called usuarios that is related to the perfiles entity, each user has an assigned profile, in the profile table is ...
0
votes
1
answer
51
views
C#(winform) 1 usercontrol form and 1 form window, not triggering the usercontrol event after clicking a button in other form window
I have 1 usercontrol forms and 1 regular window form. First form(window)trigger an event in the other form, I reference them, when I click a button in form 1 it trigger an event in usercontrol form, ...
0
votes
0
answers
21
views
show binary data in gridview
Imports System.IO
Public Class frmrequest
#Region "توابع و متد ها"
Private Sub LoadList()
Try
Dim buttonColumn As New DataGridViewButtonColumn()
...
0
votes
0
answers
20
views
Edit DataGridView Cells Without Textbox
Is there a way I can edit values of DataGridView Cell by double clicking the cells and edit it. By using the button edit it can edit the changes without textbox.
The approach i'm using in DataGridView ...
-1
votes
0
answers
37
views
how to use datagridview RowValidating for check qty hand with dapper in vb.net
I want the selected row in the transferredQTY column if the replacement is larger than stock then an error appears with row validating but it works whether there is something wrong with my code.
...
-1
votes
0
answers
31
views
Problem with DataGridView in C# - WindowForms, show System.Data.DataRowVien instead of combobox information
i am having a problem, in my DataGridView table, one of the Column -showing : System.Data.DataRowView on whole fields.
public void fillcombobox()
{
Con.Open();
SqlCommand cmd = new ...
3
votes
1
answer
41
views
PointToScreen doesn't calculates the X value of a column in a DataGridView
For displaying a context menue at a click into the header of a DataGridView I use:
private void dgv_ColumnHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e)
{
if(e.Button == ...
0
votes
1
answer
48
views
Prevent ComboBox in DataGridView from opening and closing instantly in C# Winforms
I have a C# WinForms application, and I succeed in filtering ComboBox items by writing any part of its items and pressing enter after inputing the text part, using this code:
private void ...
-2
votes
0
answers
31
views
How to get sum in dataGridView in C#
dataGridView data
This table is order by warehouse, salesman, customer, category. And I need to populate a report based on these data (these are just part of the many data).
ManagerA
customerA
...
0
votes
0
answers
40
views
How to use DataGridView BeginEdit for 3 columns in vb.net
So I want the edit content to click first then the edit position in column 3, then I click second then the edit position in column 4, then ,then click third then the edit position in column 5.
or ...
0
votes
1
answer
148
views
Why Looping each row in a datagridview doesn't show all value in the messagebox in the vb.net
It should also appear in the messagebox for codeproduct "B" if there is something wrong with my code please guide me
I updated the code full making it easier to solve the solution . maybe ...
1
vote
1
answer
69
views
How to make a specific row in one column editable in datagridview when cellcontentclick in edit column in vb.net
I try it has not succeeded if I uncomment for the code DataGridView2.Columns("Qty").ReadOnly = True
then it can be editable but all rows in one column but I want to be editable in the row I ...
-2
votes
0
answers
21
views
Cannot clear this list after importing data
i have problem cannot clear this list after importing, please help me
Sub tampil()
DataGridView1.Rows.Clear()
Try
connect()
Da = New SqlDataAdapter("select *from ...
-2
votes
1
answer
42
views
How to Update Stocks When Editing qty in Transaction Details with Dapper on VB.NET
how can I update the correct stocks when editing quantity (Qty) in transactions by adding, subtracting and also deleting the qty. Please guide. Below I tried but the results don't match maybe there is ...
1
vote
1
answer
44
views
Using VB.Net, how to control single DataGridView Header cell visibility
Community,
I am developing an app that will use a DatGridView object. I cannot find a property or method to hide the column header text of the checkbox column.
Properties I have tried include: ...
-2
votes
1
answer
73
views
how to update MS-ACCESS database from datagridview with dapper in VB.NET
Previously I did a sql insert by looping with the datatable to the database but now I want to update to the database with dapper, please guide me so that I am not wrong in the method taken, because ...
0
votes
1
answer
20
views
Search, select and show a row in a DataGridView
i want to search a color(RAL) or storage location(Lagerort) in my DataGridView, select and show the found item.
with row.select the found item get selected, but i have to scroll down in the ...
0
votes
0
answers
14
views
How to fill DataGridViewComboBoxColumn items differently for each row
I have the following code:
private void FillJobDescriptionItems(int rowIndex)
{
DataGridViewRow row = dataGridViewTimesheetEntries.Rows[rowIndex];
// Get the ...
0
votes
0
answers
15
views
In Datagridview c# edit mode how to keep cursor in current cell when cursor in last or first position of text
In Datagridview c# edit mode how to keep cursor in current cell when cursor in last or first position of text. currently when cursor in edit mode and it is in last or first position then if I press ...
0
votes
0
answers
75
views
Remove last line in a DataGridView
I have a normal DataGridView.
Edit: I use "dgv.CellBorderStyle = DataGridViewCellBorderStyle.SunkenHorizontal;" to remove the line in the normal version.
And when i change the color to ...
0
votes
1
answer
70
views
How a DataGridView keeps the position of a selected row after event population in VB.NET
How a DataGridView keeps the position of a selected row after event population in VB.NET.
I want without using bindingsource whether it can be applied please guide.
For database information, the table ...
0
votes
1
answer
41
views
WinForms DataGridView row refresh issue
Background:
A WinForms form has two DataGridView controls, DataGridView1 and DataGridView2 (with SelectionMode property set to FullRowSelect) as shown in the uploaded pictures. Both the DataGridView ...
0
votes
1
answer
37
views
Updating the DataTable row from DataGridView after Filter has changed
I have a DataGridView control that I use a filter on. That all works. When I execute code through a background worker, I use data from that grid for the worker to act upon. The worker then updates ...
0
votes
0
answers
38
views
Setting a DataGridViewCheckBoxCell value to false doesn't uncheck the checkbox in the DataGridView
My DataGridView is set up as a table with 3 columns, [INSPECTED]Checkbox, [SHIPPED]Checkbox, and [SERIAL #], which isn't relevant to this question. I have it set up so in order to have SHIPPED checked ...
0
votes
1
answer
41
views
How to add extra data to a table widget in Pyside6
I am trying to add a separate data structure to each table widget in my stacked tree widget list. When I access the selected table widget, I want this information to be available to the code managing ...
0
votes
0
answers
39
views
WinForms DataGridView Data Binding
// Object Model
public class LineItem
{
public PropA { get; set; }
public PropB { get; set; }
}
public class CustomLineItem : LineItem
{
public PropC { get; set; }
}
public class ...
-1
votes
1
answer
59
views
how inner join 2 tables display specific fields in datagridview with dapper in MS-ACCESS database in vb.net
why "codeproduct" from the StocksoutDetail table does not appear in the datagridview is there something wrong with my code and also why in the datagridview another field appears even though ...