Questions tagged [autogeneratecolumn]

AutoGenerateColumns is a GridView/DataGrid property that helps create columns automatically.

AutoGenerateColumns is a GridView/DataGrid property that helps create columns automatically. When the AutoGenerateColumns property is set to true, an AutoGeneratedField object is automatically created for each field in the data source. Each field is then displayed as a column in the GridView control in the order that the fields appear in the data source. This option provides a convenient way to display every field in the data source; however, you have limited control of how an automatically generated column field is displayed or behaves.

65 questions
0
votes
2 answers

WPF Datagrid - make auto generated column(s) be required

I have a datagrid in a wpf application where AutoGenerateColumns="TRUE". I would like to set some or all of them to be required and invalidate if something is missing. I was hoping there would be something like:…
donL
  • 1,290
  • 3
  • 13
  • 37
0
votes
2 answers

What does the data source need to have for a GridView to autogenerate columns?

I created custom datatype classes that format the data the way I need it. The data I retrieve from the database comes as .NET base types, so I need to loop through the DataTable, convert each item into it's custom type, and put the converted item…
Boric
  • 822
  • 7
  • 26
0
votes
1 answer

Datagrid WPF: Bind datepicker in AutogeneratedColumns

I have autogeneratedcolumns datagridgrid. This is my xml code for defining a datagrid:
Amir
  • 625
  • 1
  • 11
  • 26
0
votes
1 answer

How to solve generic ComboBox representation in a generic GridView

I have a DataGrid in a user control (DataGridView). This usercontrol propagates a binding to DataGrid's ItemsSource from anywhere in the application and fills it with List of K. For this example lets define clas for K that has some properties with…
nzic
  • 184
  • 9
-2
votes
1 answer

AutoGeneratedColumn Event in Datagrid?

When I search up for the AutoGeneratedColumn event this is all that I get. If the AutoGenerateColumns property is set to true, the AutoGeneratingColumn event is raised for each column created. When all columns are created, this event will…
Pacman
  • 11
  • 5
1 2 3 4
5