G
Guest
Is there an easy way to change a DataGrid specific column display
to something else then the actual bind data value from the datase
using something like the format or parse ?
What I would like to append before the grid is show, is to make some transformation
from one integer field from the dataset.table to its text equivalent "0 = Sales, 1 = Orders
using a function that could be called prior to show the datagrid.
Right now I did change the dataset by adding a new column with the text equivalen
after the initial load of the dataset, so I have to iterate trough all row and this is an optio
I will like to avoid.
I know I can use this king of code for textbox simple databinding
Binding b
b = txtUnitPrice.DataBindings.Add("Text", vueDetail, "UnitPrice")
b.Format += new ConvertEventHandler(DecimalToCurrencyString)
b.Parse += new ConvertEventHandler(CurrencyStringToDecimal)
Any idea.
Carl,
to something else then the actual bind data value from the datase
using something like the format or parse ?
What I would like to append before the grid is show, is to make some transformation
from one integer field from the dataset.table to its text equivalent "0 = Sales, 1 = Orders
using a function that could be called prior to show the datagrid.
Right now I did change the dataset by adding a new column with the text equivalen
after the initial load of the dataset, so I have to iterate trough all row and this is an optio
I will like to avoid.
I know I can use this king of code for textbox simple databinding
Binding b
b = txtUnitPrice.DataBindings.Add("Text", vueDetail, "UnitPrice")
b.Format += new ConvertEventHandler(DecimalToCurrencyString)
b.Parse += new ConvertEventHandler(CurrencyStringToDecimal)
Any idea.
Carl,