This is a migrated thread and some comments may be shown as answers.

Selective adding columns to RadGrid from sqlDataSource

2 Answers 42 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Willem
Top achievements
Rank 1
Willem asked on 30 May 2008, 09:50 PM
My sqlDataSource can have most different SQL select statement when clicks come from a panelbar. Hw and where do i monitor and add the columns that are assigned to my RadGrid and what are the setting of my RadGrid. Do i need AutoGenerateColumns or not.

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 02 Jun 2008, 05:52 AM
Hi Willem,

Go through the following help articles.

Smart Tag
Declarative Data Source
Binding the grid

Thanks
Princy.
0
Willem
Top achievements
Rank 1
answered on 04 Jun 2008, 10:05 AM
Hi Princy,

The last example seems me te most practical, work from the needdatasource event. The only addition i have to make is the selection of the fields. For example all fields that start with the "hid_" prefix should be ignored. Fields that start with the "lst_" prefix should appear in lisboxes. Do you have a suggestion for this approach?
Tags
Grid
Asked by
Willem
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Willem
Top achievements
Rank 1
Share this question
or