G
Guest
I have a VB.NET Windows application with bound DataGrid control with it’s
DataSource property set to a DataSet object. The DataSet object is created
from an XML Schema. I would like to define some new columns in the DataGrid
that are not yet in the DataSet object that are populated based on a given
critera and values in the existing DataSet object.
I added the new columns to the XML Schema and created a DataGridTableStyle
that contains DataGridTextBoxColumn objects to hide some columns of the grid.
First question: Do all DataGridTextBoxColumn objects must have it's Mapping
property set, thereby, forcing me to add the new columns also to the DataSet?
Second Question: Is there an event or a delegate that can be defined that is
trapped for each row or column instance of the DataSet when it is in the
process of being filled? Or is there another way I can trap each column as it
is being filled?
Is this the best way to do what I am trying to do?
DataSource property set to a DataSet object. The DataSet object is created
from an XML Schema. I would like to define some new columns in the DataGrid
that are not yet in the DataSet object that are populated based on a given
critera and values in the existing DataSet object.
I added the new columns to the XML Schema and created a DataGridTableStyle
that contains DataGridTextBoxColumn objects to hide some columns of the grid.
First question: Do all DataGridTextBoxColumn objects must have it's Mapping
property set, thereby, forcing me to add the new columns also to the DataSet?
Second Question: Is there an event or a delegate that can be defined that is
trapped for each row or column instance of the DataSet when it is in the
process of being filled? Or is there another way I can trap each column as it
is being filled?
Is this the best way to do what I am trying to do?