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
2
votes
0 answers

IsEnabled binding for the auto-generated DataGridCheckBoxColumn

I have a DataTable in the view model and DataGrid bound to that DataTable with option AutoGenerateColumns="True" and AutoGeneratingColumn event implemented in the view code-behind. In this event I make decision to show or not to show some particular…
sarh
  • 6,371
  • 4
  • 25
  • 29
1
vote
1 answer

Change Order of columns

I am using gridView. I have 4 auto generated columns and 1 generated by my self. Now the column which i have generated is displayed first and then the auto generated columns. I want to display auto generated columns first then my generated column.
Waheed
  • 10,086
  • 20
  • 53
  • 66
1
vote
1 answer

How to convert a unix time to GMT+8 human readable date without FROM_UNIXTIME() function?

Since mysql Generated Column can't use FROM_UNIXTIME() as generate sql, how can I convert a unix time to GMT+8 human readable date? My failed example: ALTER TABLE just_a_table ADD COLUMN created_date CHAR(5) GENERATED ALWAYS …
DaveICS
  • 37
  • 2
  • 6
1
vote
2 answers

how to generate sequence id in composite primary with @IdClass in springboot hibernate

I am implementing a composite primary key with auto-generated annotation in spring boot hibernate. below is the scenario: Account table has below columns: stateCode,branchCode,prodCode,subProdCode,accountNumber whenever there is a change in…
Ahmed
  • 191
  • 1
  • 7
1
vote
1 answer

How to set column width of autogenerated columns in Kendo UI Grid for angular

Cannot set width for autogenerated Kendo UI Grid for angular. I want to set the width same as I am setting the field name and title and datatype. I tried adding a property width to my ColumnSetting Array, then tried to just add a fixed width setting…
1
vote
1 answer

DataGridView Autogeneratecolumns as TextBox instead of label

How can I have a datagridview that will autogenerate a textbox instead of a label?
Dested
  • 6,294
  • 12
  • 51
  • 73
1
vote
1 answer

Auto-generate field value on sfGuardUser when registering

I'm building a Symfony 1.4 project that is using sfDoctrineGuardPlugin for users/authentication. I have a field on my user table named "access_token" that I would like to populate with an auto-generated value upon user registration. I see that for…
Matt Huggins
  • 81,398
  • 36
  • 149
  • 218
1
vote
1 answer

Autogenerating columns from empty results in Silverlight

I'm doing some rapid prototyping and is trying to mock out an admin interface for a website and went with WCF RIA Services. I'm able to expose and consume the domain services from server to client, but I'm struggling with getting columns…
1
vote
1 answer

WPF MVVM Light Cannot trigger DataGrid AutogeneratingColumn event to dynamically manage columns

I want to dynamically manage the columns of a Datagrid which is buond to an EF element and should display only columns selected from a ListBox. I use MVVM Light toolkit and when I try to use and fire the AutoGeneratingColumns event it doesn't work.…
RizzCandy
  • 121
  • 9
1
vote
1 answer

in an asp.net gridview, should autogeneratecolumns=true ignore datakeys?

My question is two-fold: firstly, is it a mistake by Microsoft that when the autogeneratecolumns=true attribute of an asp.net gridview is set, columns are generated even for fields listed in the datakeynames attribute? Surely that is contrary to the…
DJDave
  • 865
  • 1
  • 13
  • 28
1
vote
1 answer

Gridview Columns change on postback

I'm developing my website in asp.net using visual web developer 2010. I have a product page for an online store where it is displaying the product pictures and a gridview is displaying information about the product, there are multiple columns for…
user3841709
  • 386
  • 6
  • 28
1
vote
2 answers

How to get width of gridview column when AutoGenerateColumns is true

I have a gridview that I need to get the width of columns for after the gridview is databound. I have to have AutoGenerateColumns=true because the columns for the datatable that the gridview is bound to is not going to be fixed. The problem I'm…
John81
  • 3,726
  • 6
  • 38
  • 58
1
vote
4 answers

renaming column header texts in gridview with autogeneratecolumns = true

i have a gridview that displays query data from 1 table after the user presses a button with a code behind query, this gridview had autogeneratecolumns = false and i added the BoundField DataField header texts myself, for example, the first column…
user2983177
  • 201
  • 2
  • 6
  • 18
1
vote
2 answers

Using Mode=TwoWay and AutogenerateColumns=True in Silverlight 3 DataGrid

My List has some public properties that I want to bind to columns in a DataGrid. Unfortunately, the names of the public properties are not good and I may not even know what they are until runtime. For this reason, I set…
John Mc
  • 212
  • 2
  • 16
1
vote
1 answer

ASP.NET 3.5 Gridview layout for each product type in DB

I'm trying to create a simple CMS-likeb backend app that uses TreeView for categories and GridView for product display/editing. The problem that I'm experiencing lies within the fact that there is a different table structure for each product type…
vani
  • 11
  • 1