问题描述
我的代码中有一个数据表。我从sql server获取数据。在数据表中我有列(状态)。
此状态列有2个值(C,A)。
例如:
ID状态
1 C
2 A
3 C
4 A
但我想向用户显示
ID状态
1已取消
2已批准
3已取消
4已批准。
ins in showin雕像C或A我想显示为已取消或已批准。
请在添加到gridview之前告诉我如何更改此数据表列。
先谢谢。
I have a data table in my code. I'm getting data from sql server. In the datatable I have column("Status").
This Status column has 2 values ("C","A").
ForExample:
ID Status
1 C
2 A
3 C
4 A
But I would like to show to the user as
ID Status
1 Cancelled
2 Approved
3 Cancelled
4 Approved.
Insted of showin the statue "C" or "A" I would like to show as "Cancelled" or "Approved".
Kindly let me know how to change this datatable column before appending to gridview.
Thanks in Advance.
这篇关于如何动态更改gridview列中的更改。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!