698 questions
1
vote
0
answers
149
views
C# Winforms Datagridview with BindingSource is not filled at startup
I write a C# winforms application using the MVVM pattern. Data is stored in EF Core.
The objective is to show datasets of an EF core entity in a datagridview object.
The problem is that the ...
0
votes
0
answers
120
views
How to make bindingsource add new only limit one row in DataGridView with vb.net
I'm Trying to make bindingsource add new only limit one row in DataGridView with vb.net So if the user doubles tab in the keyboard, two empty rows appear in the DataGridView or avoiding double addnew(...
0
votes
1
answer
189
views
How to refresh via bindingsource in DatagridView in the main form when updating in other forms without closed or not in VB.NET
I'm Trying to refresh via bindingsource in DatagridView in the main form when updating in other forms without closed or not in VB.NET
Please Guide me
Thanks
Code in autocompledatagridview (Form main)
...
0
votes
1
answer
72
views
How to refresh ComboBox from bindinglist to bindingsource in vb.net
I'm Trying to refresh ComboBox from BindingList to BindingSource in VB.NET, but it didn't work.
Is there something wrong with my code?
Whether it can be reset via BindingSource or BindingList or with ...
0
votes
1
answer
80
views
How to update from textbox to database when filtering bindingsource from textbox via dapper vb.net [closed]
I'm Trying to update from textbox to database when filtering bindingsource from textbox via dapper vb.net.
so I use a textbox control to filter the datagridview TXTNAME and TXTDATE
but I have a ...
0
votes
1
answer
161
views
How to set the data source manually and print RDLC reports directly without report viewer control from list in VB.NET
I'm trying to set the data source manually and print RDLC reports directly without report viewer control
from list in VB.NET.
below I am attaching my code may not be perfect please guide me.
Thanks
...
-1
votes
1
answer
107
views
How to reset BindingSource/BindingList sequence number update to database with VB.NET
I'm trying to reset BindingSource/BindingList sequence number update to database with VB.NET
or something went wrong in my code implementation.
actually this refers to the link to this post a link! ...
0
votes
1
answer
63
views
Filter Bindingsource and datagridview
I am trying to filter a bindingsource and display it in a datagridview. But it doesn't work. The binding source is filled by a database request
Here is my code :
private void SecteurForm_Load(...
0
votes
0
answers
42
views
Is there a way to customize the columns of List created with SQL using BindingSource and dataGridView?
I am making a windows app that generates words with the letters the user enters. I use a database with 50k words. For each word, I compare the letters entered by the user with the number of letters in ...
-1
votes
1
answer
64
views
how to use IEquatable<T> with field match Proper and lower in vb.net
How to solve the field match between lower and proper so that the results become one row in the DataGridView and only update the number.
Is there something wrong with my code? and please guide me.
is ...
0
votes
0
answers
125
views
I want to use multiple % in BindingSource.Filter
I have thousands of data like
uPVC Elbow 2"-D
uPVC Elbow 6"-D
uPVC Elbow 8"-B
uPVC Elbow 10"-B
uPVC Elbow 4"-D
uPVC Elbow 12"-B
uPVC Elbow 5"-B
uPVC Elbow 3"-B
...
2
votes
1
answer
152
views
VB.NET: Why aren't BindingSources and TableAdapters working? DataAdapter alternative?
I've been working on a windows forms application, written in vb.net for several months now. I've had a LOT of problems with my binding sources and table adapters not updating the connected access (....
1
vote
0
answers
52
views
Custom BindableDictionary binded to BindingSource not refreshing Inner List object
Problem:
I'm trying to bind a Dictionary<string key, string value> to BindingSource and use it as DataSource for a ListBox control in a form but it did not work. Later I found that Dictionary ...
0
votes
0
answers
85
views
Winforms BindingSource .AddNew() works but .CancelNew() does nothing
Per screen capture below:
bindingSource1.AddNew() works as expected. A new item appears and becomes current.
bindingSource1.CancelNew() does nothing. Per debug messages my button handler is clearly ...
0
votes
1
answer
97
views
What determines the order in which data bound text boxes are filled in a form?
I have a form with three text boxes, of which the first and second are bound to the same data binding source. When the form loads, I need the first text box to populate so that the second can use it's ...
0
votes
0
answers
54
views
BindingSource does't work on label MONO c#
I has the followinng code to make update of more control refers to the same variable on windows form.
I make it to update more than one control by asingle operation on update datatable.
This working ...
1
vote
0
answers
80
views
DataGridView refreshing fixed position in row filter textbox in vb.net
I want when filtering rows in the textbox then the database is updated from other applications then I do a refresh I want the datagridview that I filter in the textbox in a fixed position and also ...
-1
votes
1
answer
35
views
Linked DataGridViews Not Updating
I have 2 pairs of Master-Details (dgvs) datagridviews that are linked together. I also use binding sources for each table. See image.
Table Relationships
When I click on a row for the ...
0
votes
1
answer
597
views
event in textbox for binding source filter datagridview for string type in vb.net
is there a solution for events in the textbox for binding source filters for string types. The example screenshot below with the code "1000*" should appear directly appear cell gridvivew but ...
0
votes
0
answers
146
views
Prevent BindingSource from adding two blank rows to gridview
I have BindingSource that attached to grid control like this
private BindingSource listDepartmentDto = new();
private async Task LoadDataAsync()
{
listDepartmentDto.DataSource = await ...
0
votes
1
answer
39
views
Query remains in table when i clear the search box
When I clear the search box in the form, the table shows the same info (I want the table to show the original one, without any query).
Code:
Private Sub Button4_Click(sender As Object, e As EventArgs) ...
0
votes
0
answers
893
views
BindingSource is null even when the DataSource has regular data
I have a DataGridView that loads data from a file. I also want to use the DropDownFilter Column - I've used the one from Karl Erickson on Microsoft. It works all good while the columns are set in the ...
1
vote
1
answer
306
views
How to filter DataGridView using TextBox
I don't have much experience yet. I'm trying to filter rows which contain the input text.
In order..
I use MailKit to receive incoming messages and put data from them in Grid
public void ShowMessages(...
1
vote
0
answers
114
views
Keep data highlighted (selected) in a DataGridView after filtering the BindingSource
I have a DataTable that is attached to a DataGridView via BindingSource.
My grid (and data) are dynamic - the BindingSource has a filter rule and every second, one value is changed and the filter is ...
1
vote
1
answer
148
views
How can I write to a textbox in C#, having a bindingSource?
This is my code in C# with Visual Studio 2019:
private String[] getClientData(String clientName)
{
DataTable table = labelPrinterDBDataSet.Tables["clients"];
DataRow[] datatable = ...