← Back to all blogs

Posts tagged with 'bindinglist'

Batch Update in C1DataGrid for WPF

Developers need to track the edits (insert, update and delete) while working in any grid control and then provide the capability to utilize the same database connection to perform the updates, and optionally perform the updates as an atomic transaction.  There are use cases when a user changes data in a data grid, and those changes are immediately reflected back to the database.

Sort C1Flexgrid Bound to a BindingList

Using business objects as a DataSource is quite common these days. Here, rather than communicating directly with the data provider, the client control communicates indirectly through the data cache object. However, it is important to note the fact that the interfaces implemented by the data provider for the benefit of the data cache are different from those provided by the data cache to its clients. Else, we lose few functionality, which considering the flexibility of the C1Flexgrid, is not a pleasant affair.

Binding to Subproperties

I while ago I was asked about binding to objects that contain other objects as properties, and whether there was a way to expose those sub-properties as columns on the grid. At the time, I suggested using OwnerDraw to display the value of the sub-properties in the grid cells, using the column's UserData property to identify which sub-property to bind to. The solution worked but was far from perfect, since it did not support editing or sorting.

C1TrueDbGrid Binding to BindingList Implementing INotifyPropertyChanged Interface

The most commonly used data binding in C1TrueDbGrid is binding the grid to the List<> collection. And the most commonly faced problem in C1TrueDbGrid is that the updations to the collection at runtime are not shown on the grid.