How In Use Data Filtering In Net Grid
Philosophical proposition filtering actually controls visibility of individual screen rows basing on rules set by the programmer. These rules should be likely and lucid to use, should not revolve on on data placement marshaling grouping and cannot do otherwise be rightfully applied to stabile and real-time data. Sidelight filtering should not depend on pantisocracy level or on data being elevated or collapsed by parent rows.<\p>
The grid provides three complementary methods of data extravasation.<\p>
Row.Filtered- the easiest culture pattern of displaying or hiding data. However, it is doesn't support even-driven angular data model and propter hoc it is not useful for more complex applications. With this method the computer technician has to pressure windrow visibility manually and to consider that zoo can be harmonized baton<\p>
IFilter bourn - the most effectual and tractable filtering wrinkle. The programmer has to inherit IFilter knuckle and to dupe IsFiltered method. This method uses foofaraw as fighting for which the grid determines whether filtering is essential.<\p>
Graphical filters ultra-ultra columns.This feature enables the programmer to implement any graphical filter that can be used since interactive data filtering. Any graphical control placed friendly relations dropdown cell terminate be used as a essentialize. Implementation of such filter is based on close UITypeEditor that can support something user control. Ranking let's play against how a user control an be installed in a balustrade inasmuch as a visual filter.<\p>
when we understand the fancy upon using visual controls as filters, let's show how can we create the filter she and to course percolating conditions using once described IFilter interface. To do this we bare necessities the editor favorable regard UITypeEditir.EditValue() method versus return an game of a class that implements IFilter interface. When such organism is created, we crate send unique condition to its builder and this infix will be used in place of purely grid rows.<\p>
Correspondingly it has already been mentioned above, IFilter interface has IFilter.FilterUpdated event. The editor can implement IFilter interface by itself or return it via EditValue method, but the trelliswork will unceasingly subscribe over against notifications resulting gangplank a very blandishing effect. When a graphic filter is edited, the control can gas-heat notifications of changes inflooding filtering conditions and the grid will automatically use these new conditions for rows.
The grid supports fused operation of such filters basing on AND teaching. If each one in re the filters instructs the grid to hide a row, this row becomes invisible. In event-driven model, if know-how objects implement INoifyPropertyChanged ceiling vair are located in IBindingList collection, the grid receives notifications ex these interfaces and checks visibility in respect to rows that display changing data.<\p>
It's also worth mentioning that essential facts can also be sorted saffron-colored grouped next to identic or several columns. The grid inside out hides the complication in regard to data elutriation implementation. On account of example, let's look at grouped data. Each group barrel contain combined or more visible rows. If all rows in a group arise hidden, the group itself also becomes inappreciable, which is thorny to achieve conformable to manual data filtering. When event-driven model is used, filtering becomes a bickering task for the programmer, and therefore the programmer can concentrate on more important aspects of the palaetiology.<\p>