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

How to set grid datasource ??

1 Answer 81 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tseng
Top achievements
Rank 1
Tseng asked on 13 Jul 2011, 01:17 AM
Hello, everyone

 I refer the demo code and use the following code to build arraylist.

=================================
public class MyObjECG
    {
        public string _date = "";
        public string _time = "";

        public MyObjECG()
        {
        }

        public MyObjECG(string strDate, string strTime)
        {
            _date = strDate;
            _time = strTime;
        }
        public string Date
        {
            get
            {
                return _date;
            }
        }
        public string Time
        {
            get
            {
                return _time;
            }
        }
    }
================================= 
I want to show these data in two rows. It likes outlook style 'form/subject'. So I add '<telerik:GridTemplateColumn>' in my gridview. 
When I set  '<telerik:GridTemplateColumn>' in my grid, the grid view will show twice data like the following.

Date/Time            Date                Time
===============================
2011/07/18       2011/07/18          18:00
18:00

I just want to show.

Date/Time        
===========
2011/07/18       
18:00

Anybody help me ??

Thanks, Tseng

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 13 Jul 2011, 05:11 AM
Hello Tseng,

Try setting the AutoGenerateColumns property to false in RadGrid.

Thanks
Shinu
Tags
Grid
Asked by
Tseng
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or