M
Morris Neuman
Hello
I am working in VS2008 C#. I have a Windows Form project and have a
Datagridview control. It is displaying data from a database table. One
column has an integer type and represent a time slot. 0=AllDay, 1=Morning,
2=afternoon, 3=First shirft, 4=Second shift, etc. about 15 names in all.
How can I have a column in the data grid show the text value e.g. Morining
instead of just a number from 0 to 15?
I tried to add an unbound column and set the Expression property to a
function:
string GetTimeofDay(int TimeofDay)
But it looks like you cant have a function call in the Expression. Is that
correct/
If so how can I get it done?
I am working in VS2008 C#. I have a Windows Form project and have a
Datagridview control. It is displaying data from a database table. One
column has an integer type and represent a time slot. 0=AllDay, 1=Morning,
2=afternoon, 3=First shirft, 4=Second shift, etc. about 15 names in all.
How can I have a column in the data grid show the text value e.g. Morining
instead of just a number from 0 to 15?
I tried to add an unbound column and set the Expression property to a
function:
string GetTimeofDay(int TimeofDay)
But it looks like you cant have a function call in the Expression. Is that
correct/
If so how can I get it done?