DataGrid (Grid view) Question: Download DataGrid (Grid view) PDF

How do you apply specific formatting to the data inside the cells?

Tweet Share WhatsApp

Answer:

You cannot specify formatting for columns generated when the grid’s AutoGenerateColumns property is set to true, only for bound or template columns. To format, set the column’s DataFormatString property to a string-formatting expression suitable for the data type of the data you are formatting.

Download DataGrid (Grid view) PDF Read All 28 DataGrid (Grid view) Questions
Previous QuestionNext Question
How do you hide the columns?How do you customize the column content inside the datagrid?