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

a radgrid like excel sheet

1 Answer 60 Views
Grid
This is a migrated thread and some comments may be shown as answers.
saba
Top achievements
Rank 1
saba asked on 20 Sep 2010, 10:32 AM
hi there ,
i have a database with 2 tables on it,one of 'em is used for Rows(TRows) and onother for Columns(TColumns).one table for Values too.(TValues)
i want to radgrid to be like an excel sheet ,and i want to load columns from TColumns and rows from TRows.then set values from TValues.

can i do that?? is it possible?


if it has onother solution please help me.
thanks.

1 Answer, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 23 Sep 2010, 09:39 AM
Hello Saba,

The RadGrid is a component that displays data obtained from a database or other data source. The data is presented in tabular view.
When binding a grid by setting the DataSource property, you can set the DataSource property to an instance of any of the following types:
  • DataSet, DataTable, or DataView
  • Array of DataRow
  • Any object collection that implements the IListSource, IList, IEnumerable, or ICustomTypeDescriptor interface.
To achieve the desired functionality you could try using the Advanced Data-binding (using NeedDataSource event)  and create a new DataTable with Columns created from TColumn table, Rows from TRows table and values from TValues table. Then assign the new DataTable to the RadGrid.DataSource property.

I hope this helps.

All the best,
Radoslav
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
saba
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Share this question
or