Ahmet,
Create a custom DataGridColumnStyle inherited from
System.Windows.Forms.DataGridTextBoxColumn. Override its SetColumnValueAtRow
and GetColumnValueAtRow methods to perform this translation on the fly.
--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE
"Ahmet" <ak*********@hotmail.com> wrote in message
news:O8**************@TK2MSFTNGP11.phx.gbl...
Hi all;
I have an application in which I use dataset - dataview pair to show some
values
to users.
On database this is my sample table named members
no type name
---- ------ ---------
1 N name value
2 S xyz value
and on my program I have some hard coded values about type descriptions
like N -> Never
Y -> Sometimes etc
...
..
My probmel is that I must show the description values on datagrid instead
of showing
type values.
I mean when I create dataset and bind it to datagrid, on grid Iwant to
show "Sometimes"
not "S"
Is there any effective way to do this ?
ps: Adding hardcoded values to a new table on database and joining these
two tables is
not desired solution :(