Skip to main content
Planned maintenance impacting Stack Overflow and all Stack Exchange sites is scheduled for Monday, September 16, 2024, 5:00 PM-10:00 PM EDT (Monday, September 16, 21:00 UTC- Tuesday, September 17, 2:00 UTC). The email/password authentication method will be unavailable for logging in and registering. Read more here
Filter by
Sorted by
Tagged with
0 votes
0 answers
22 views

Why do I use filter in the keyup event in Masktexbox running but the keyup event textbox is not running in vb.net

I'm Trying to use filter in the keyup event in Masktexbox running but the keyup event textbox is not running in vb.net Is there something wrong with my code? Please Guide me Thanks Imports System....
dlaksmi's user avatar
  • 137
0 votes
1 answer
49 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 ...
dlaksmi's user avatar
  • 137
0 votes
1 answer
37 views

<solved> DataGridView linked to a BindingList : sorting rows not working

I am a beginner. I am developing a program in C# with Visual Studio and Forms. My Form has a DataGridView linked to a BindingList. I would like to be able to sort rows by clicking a column header. I ...
Chandernagor's user avatar
0 votes
0 answers
68 views

Bindinglist bound to datagridview throws error System.InvalidOperationException

I'm using C#, Winforms on .NET 4.7.2, and my project has a dataGridView bound to a BindingList<Frame>. When I add dynamically the first object to the list, it throws System....
Ricardo De Oliveira's user avatar
0 votes
1 answer
36 views

C# - Adjust an auto-incremented field of an object when item is removed from Bindinglist

I have a class for a "Car" object which I have added several instances of to a Bindinglist attached to a Datagridview. I am trying to make a specific field of this object increment every ...
Saturn's user avatar
  • 3
0 votes
0 answers
30 views

How to return the type of an item in a BindingList?

I have a Class called "Computer", and two classes that derive from it--"Hardware" and "Software". I have created a BindingList which stores items of both the Hardware and ...
Saturn's user avatar
  • 3
0 votes
0 answers
42 views

how to filter equal date with MaskedTextBox in datagridview via BindingList & BindingSource in VB.NET

I'm Trying to to filter equal date with MaskedTextBox in datagridview via BindingList & BindingSource in VB.NET. but when I create an empty MaskedTextBox then the data is not repopulated or ...
Tam88's user avatar
  • 71
0 votes
0 answers
46 views

How I do it if I have updated the database then reflect it to the datagridview without reloading in VB.NET

I'M trying if I have updated the database then reflect it to the datagridview without reloading in VB.NET. So it stays in the filter state in the datagridview. It's also possible that the code I ...
Tam88's user avatar
  • 71
-1 votes
1 answer
67 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 ...
Tam88's user avatar
  • 71
0 votes
3 answers
373 views

error Unable to cast object of type 'System.Collections.Generic.List` to type 'System.Collections.Generic.IList` via bindinglist in VB.NET

I have 2 errors, namely : Unable to cast object of type 'System.Collections.Generic.List`1[VB$AnonymousType_15`7[System.String,System.String,System.String,System.Object,System.Object,System.Object,...
user avatar
1 vote
1 answer
101 views

Filter list datagridview via textbox using a second bindinglist class and set to bindingsource.datasource in vb.net

I'm trying to filter list datagridview via textbox using a second bindinglist class and set to bindingsource.datasource in vb.net. The problem is when I filter in two event textboxes and then I I make ...
user avatar
0 votes
1 answer
49 views

object reference not set to an instance of an object in combobox when cast the bindingsource to the datagridview in VB.NET

I tried to cast the bindingsource to the datagridview but there was an error, the problem was in the combobox binding. Below, if I use the first code option, there is no problem error, but if I use ...
user avatar
-1 votes
1 answer
101 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! ...
user avatar
-2 votes
1 answer
222 views

why does binding combobox during form load make it slow or delay in VB.NET

I'm trying binding combobox with 4 combobox in form load , I use 1 form Form2 to add and view. if I comment out the code BindcomboboxJob2() BindcomboboxJob2() BindcomboboxJob3() BindcomboboxJob4() in ...
user avatar
0 votes
1 answer
140 views

How to reset BindingSource/BindingList sequence number in DataGridView with VB.NET

I'm trying to reset BindingSource/BindingList sequence number in DataGridView with VB.NET. or something went wrong in my code implementation Please Guide Me. Below I attach screenshots and codes as ...
user avatar
0 votes
1 answer
51 views

Weird behaviour when changing value according to ComboBoxCell selection in DataGridView bound to BindingList - Winform C#

I have a form with a DataGridView (set up with the visual editor), bound to a BindingList of an EF class. One of the fields has values related to another table (selectable via ComboBox). Everything is ...
raululm's user avatar
  • 105
0 votes
0 answers
107 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 ...
user avatar
-1 votes
1 answer
60 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 ...
user avatar
0 votes
0 answers
74 views

C# how to filter listed files on Data Grid View

my program has a datagridview where selected files are listed. Those files can be filtered with a searchbox. Here is my code: private void durchsuchenButton(object sender, EventArgs e)//search button ...
LFLJM's user avatar
  • 85
0 votes
1 answer
69 views

Update objects within a collection of objects

I'm trying to access and change the value of a an object within a bindinglist of objects. I have a bindinglist of Packages that contain these Package objects: private BindingList<Package> ...
Donald Leschyshyn's user avatar
0 votes
1 answer
290 views

Multi UI-threading and databinding issues

I'm having issues updating the UI threads. Application is running 1 UI thread for each form, meaning just using SyncronizationContext with the UI thread doesn't work. I'm doing this for looping update ...
Ifirit's user avatar
  • 41
0 votes
1 answer
182 views

How to filter a specific record from BindingList c#

I have a bindinglist and after populating it, the list will be bind to a listbox. private BindingList<VersionControlLabel> allTfsLabelList = new BindingList<VersionControlLabel>(); ...
Prageeth Liyanage's user avatar
0 votes
1 answer
32 views

WF .Net ComboBox Control - How to show only items that match a condition

I have a BindingList list and a ComboBox dropdownUI. If I do: dropdownUI.DataSource = list, all the employees in the list will show in the drop down. I want to know if there is a way to only show the ...
Louis Tran's user avatar
  • 1,134
1 vote
1 answer
371 views

c# drag and drop does not work (BingdingList for DataGridView)

I want to add drag and drop function to my app where Data Grid View is used to display file names. Datasource is a bindinglist. I made another bininglist to store dragged files, and I want to import ...
LFLJM's user avatar
  • 85
0 votes
1 answer
95 views

DataGridView DataSource can't be added to

This part of my code is responsible for adding new items to my BindingList<DevicePropertyTable> called DeviceStorage public void StoreDevice(string deviceName) { var device = ...
Ákos's user avatar
  • 11
1 vote
1 answer
124 views

Problem while filling a RadGridView with a BindingList of objects

I need some help on a little problem; I want to use a component which inherits from a RadGridView from Telerik. I want to fill it with a BindingList of RowService, a class I create, the code looks ...
lvbartow's user avatar
0 votes
0 answers
41 views

How do I get my List Box to display the actual names of my properties in my entity framework data base

My list box is showing the data but not the actual names of it here is some code I used to display it but its not showing the names. public void WireUpList() { FoodListBox.DataSource =...
Hayden's user avatar
  • 33
0 votes
1 answer
64 views

C# I have a list of <Person>objects in a dataGridView. How can this be searched by a user inputing text into a txt box input?

I have a list of Person objects that contain the variables {int id, string name, string status, int age}. How can this be searched by a user inputting text into a text box? I have the list of Person ...
TK8888's user avatar
  • 1
1 vote
1 answer
600 views

DynamicData: ObservableCollection.AsObservableChangeSet().Filter().Bind(): BindingList not updated automatically when item added to source collection

I using DynamicData and have following code: ObservableCollection<Item> sourceCollection = new ObservableCollection<Item>(); BindingList<Item> bl = new BindingList<Item>(); os....
SorryIAmNewbie's user avatar
2 votes
1 answer
364 views

New row default values from datagridview dissappear when another control is selected

This is my first question here so please be merciful with me. Purpose: What I want to accomplish is to allow users to edit rows from a DataGridView (which is binded to a List of objects of custom ...
mbd's user avatar
  • 356
-2 votes
1 answer
218 views

Binding C# BindingList<T> to a DataGridView

Maybe the question is a little bit dumb, but I did not quite find solution anywhere else. So I am using a BindingList of custom made class objects as a DataSource for DataGridView. Everything works ...
predefined_'s user avatar
1 vote
1 answer
466 views

c# BindingList with Dapper

Could someone help on how to use BindingList with dapper 1.60.6 in winforms c# Here's my code public BindingList<DisplayTransaction> GetTransactionsBinding() { BindingList<...
KBagaipo's user avatar
0 votes
1 answer
131 views

How to refactor this code to search through multiple properties of a BindingList?

I have created a Search button and an associated texbox in Windows Forms to search through a DataGridView. The DGV shows information in a BindingList. The BindingList has the properties PartID, Name, ...
Chap's user avatar
  • 61
1 vote
0 answers
760 views

How to remove a row from a DataGridView using a BindingList as a DataSource?

I have a datagridview, Source is BindingList, which contains name, date and pos. I'm using this to add new users to it: public void Add(employee add) { mylist.Add(add); } employees workers = new ...
Maze's user avatar
  • 19
0 votes
0 answers
229 views

Reorder Elements of Generic BindingList

I have several DataGridViews which perform similar operations on different types of data. For one of these operations, I want to select a row in a DataGridView and move it up or down one index. These ...
Groger's user avatar
  • 554
0 votes
1 answer
235 views

Filtering entity framework dbset before assigning it as datasource

I want to be able to do what is commented out below but I can not figure out how to do so. I understand why I need to do the load and then reference the local observable collection and set it to be a ...
Don Bouchard's user avatar
0 votes
1 answer
785 views

DataGridview with BindingSource as DataSource displays values only after selecting a Row

I'm using a DataGridView to display string values using a string wrapper class, a BindingSource and a BindingList. When launching the app, however, the values are only visible after clicking on the ...
evilmandarine's user avatar
0 votes
1 answer
147 views

C# A bindinglist saves me the null value in json

When i save the json file i hold only a null value, why? Il'l want to view my datagridview e add in it some row then i'ld want to save the table in a file private void btn_Salva_Click(...
Adrenerg1co's user avatar
1 vote
1 answer
101 views

Binding TextBox to ListBox SelectedItem does not work

I have a Winforms application in which there is a listbox and a textbox. The listbox displays a list of items via a BindingList, and for each item the property Name of the item is shown. I want to ...
Marlon's user avatar
  • 45
0 votes
1 answer
1k views

C# Right way to update Data using getter and setter in Generic Data (Data : INotifyPropertyChanged)

I am quite new to C# and want to know the right way (not wasting any resources) to handle Generic Data. I have a BindingList that is used to bind dataGridView.DataSource. Below is the example code ...
hyukkyulee's user avatar
  • 1,134
-3 votes
1 answer
2k views

How to use LINQ to filter values in a column from a list?

I have a dataGridView with a bindingList as a data source. I want to filter the dataGridView to show only rows that have in a given column value from the list. For example, a list has values 1, 2, and ...
TK-421's user avatar
  • 330
0 votes
0 answers
113 views

Sqlite, DataGridViews and BindingLists

I have been able to successfully create, deploy, read from and write to a SQLite DB. Now I am wanting to take a query (SELECT * FROM Device) and return the result into a BindingList to be able to use ...
Patrick Davis's user avatar
0 votes
1 answer
102 views

Winforms Listbox, how to make a displaymember work despite the Drawmode being OwnerDrawFixed?

I've been trying to have different colored items in my listbox and stumbled across this Link. I tried implementing it into my project. But now I have a big problem: The Data source of the listbox is a ...
Julian Kruste's user avatar
0 votes
0 answers
44 views

Syntax for populating a DataGridView containing per-item BindingList data

I am working on a project that requires pre-populating a DataGridView control (C#/Visual Studio/WinForms). Getting the sample data in correctly is proving to be a bit tricky. Here is a sample item: ...
GreenAmbler's user avatar
1 vote
1 answer
110 views

How can I have two editable and updatable DataGridViews bounded to a list and sub-list?

I have a List<Input> named listInput that contains property of type a List<class> named friends: List<Input> listInput=new List<Input>(); BindingList<Input> blInput; ...
Sharif Lotfi's user avatar
0 votes
0 answers
50 views

update original BindingList binded to filterable DataGridView after cell changed

In a winform c# project ,there is a BindingList binded to DataGridView named dg , how can I make that DataGridView filterable so when I change a cell in filtered DataGridView the original BindingList ...
Sharif Lotfi's user avatar
3 votes
1 answer
414 views

c# DataGrid BindingListCollectionView custom filter throwing invalid usage of aggregate function mean

I have a collection view in which I would like to apply the filter greater than average. Issue is column type is string. So normal greater than with any number works perfect after converting to double ...
ThomasBecker's user avatar
0 votes
0 answers
146 views

How to create dependency property of BindingList<dynamic>

I'm creating auto-complete with details using TextBox and DataGrid which can accept any list [Binding List] and search based on TextBox. However, I cannot create a dependency property for a dynamic ...
Akash Kansara's user avatar
1 vote
1 answer
368 views

Create a countdown timer column in WPF datagrid MVVM

I've been working with datagridview and binding its source to BindingList. I am having a problem updating the datagrid's Timer Column value. Every time I change the Timer's value, datagrid does not ...
ThEpRoGrAmMiNgNoOb's user avatar
0 votes
1 answer
413 views

BindingList<T> does not fire ListChanged on edits

My objective is to make a list that would fire an event when element within changes. Idea is to create a BindingList of entities that implement INotifyChanged to forward that event to ViewModel. What ...
JagdCrab's user avatar
  • 645

1
2 3 4 5
7