7
Answers

Cast ArrayList used in Gridview datasource to Datatable without loops

narasimman g

narasimman g

13y
5.1k
1
Dear All,

I would like to Cast Arraylist into datatable

Arraylist can be bound in Gridview and displayed in table format
why Gridview.Datasource is not convertable to Datatable
?

is there any easier way to convert collections into Datatable

i have thousands of records ..using loops wil not be good

Advanced thanks
Answers (7)
0
Anil Kumar

Anil Kumar

NA 11.8k 983k 12y

Your code looks fine to me. 

Are you changing "StartDate" property of Ajax's calender from somewhere else? 

You can try by removing these code and dragging the same from Ajax toolbox.