Adding DataGridColumnStyle not mapped to one col?

  • Thread starter Thread starter Angel
  • Start date Start date
A

Angel

Hi,
I need to add a DataGridColumnStyle that's not mapped to anything since
it'll be a combination of two datatable columns. Since I don't want to add
another table column for this data, is it possible to create a
DataGridColumnStyle and "tell" it that it'll be composed of column1 +
column2 of the table, or DataGridColumnStyle1 and DataGridColumnStyle2 of
the DataGridTableStyle ?

Thanks,
Angel
 
Hi,

No, it wouldn't work this way. What you could do however is creating a
custom DataGridColumnStyle and overriding its GetColumnDataInRow and
SetColumnDataInRow methods (not sure of the exact spelling) and providing
your own implementation retrieving/setting data from the both of the columns
at once.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top