DataGrid (Grid view) Question:
Download Questions PDF

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


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) Interview Questions And Answers PDF

Previous QuestionNext Question
How do you hide the columns?How do you customize the column content inside the datagrid?