How to format gridview columns?

前端 未结 2 1895
萌比男神i
萌比男神i 2021-01-26 15:42

Below is my code:

var grid = new GridView();
grid.DataSource = myDataset;

grid.DataBind();

I want to format some of the columns of my grid to

2条回答
  •  情话喂你
    2021-01-26 16:38

    Create a BoundField for the currency column with appropriate DataFormatString.

    
    

提交回复
热议问题