Click here to Skip to main content
16,021,041 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi
Is there any way to bind the datarow array directly into a grid without iteration. Or to datatable without loop statment.

If any one knows please help me

Thanks

Nidhin
Posted

nidhinp25 wrote:
Is there any way to bind the datarow array directly into a grid without iteration.


There are no datagrids in C, did yiou mean to tag it C# ?

What do you mean, without iteration ?


nidhinp25 wrote:
Or to datatable without loop statment.


Why can't you use a loop ? Setting the datasource of a grid is one line of code, no loops required.
 
Share this answer
 
I got the answer

The datarow array can be added to dataset, using the dataset we can directly bind the datatable

Anyway thanks
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900