Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Display custom datarow properties in DataGridView

$
0
0

Hi

I have a typed dataset with several related tables( ej ParentTable and ChildTable datatables). The  ParentRow class (the autogenerated typed  class for ParentTable's datarows) has been extended with several properties to perform complex calculations based on their field values as such as field values of child rows.

How can I bind a DataGridView to a ParentTable instance in order to show the extending properties ? (When I set the DataSource property of the BindingSource object used as DateGridView's data source to an ParentTable type, columns bound to these properties are not auto-generated an can not be added by hand, either) I would like to bind data grid columns to these properties at design time. How could it be accomplished?

I could really appreciate your help to find a suitable way to perform this task !!!!


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>