Pooja
Pooja

Reputation: 495

Binding dynaminc columns to ASPxGridView

I have ASPxGridView with 2 static columns and dynamic columns.

I set auto generated field to true, and bind the dataset with (12 columns) to ASPxGridView.

Grid shows 2 static columns only. I need to set dynamic column values as hyperlink field.

Upvotes: 3

Views: 8066

Answers (1)

Filip
Filip

Reputation: 3347

If you set AutoGenerateColumns to true and add column to Columns collection, grid will render only column from Columns collection. You can try add static columns from code using DataBound event like in this sample:

ASPxGridView - How to add a column if the AutoGenerateColumns property is set to true

Upvotes: 1

Related Questions