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

[Solved] Columns from database.

1 Answer 120 Views
Grid
This is a migrated thread and some comments may be shown as answers.
GrZeCh
Top achievements
Rank 2
GrZeCh asked on 30 Jan 2008, 11:52 PM
Hello!
Is this possible to create columns from database? Lets say I have fileds in DB like this:
  • shop (using GROUP BY)
  • sum_of_money_from_one_day (using SUM)
  • date
.. and now I want to have columns as shops names,one columnd with date and rows with date and sum_of_money_from_one_day for all shops.

How can this be done?

Thanks in advance

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 01 Feb 2008, 08:05 AM
Hello Grzesiek,

You can allow the control to autogenerate its structure, and pass it the necessary datasource, as a datasource object. The control would then automatically pick up the datatype and create the necessary columns. Additional information on the columns types, you can find in the following example. I hope this information helps.

Regards,
Yavor
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
GrZeCh
Top achievements
Rank 2
Answers by
Yavor
Telerik team
Share this question
or