Click here to Skip to main content
15,884,472 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Whether it is possible to fill data to grid view in asp.net without binding the data to SQL database.
Posted
Comments
Albin Abel 15-Feb-11 1:04am    
you can bind grid view to XML, a collection of objects, a Dataset (not connected to database). Your choice. Let us know which is your choice, we will help you
manjulac 15-Feb-11 1:10am    
a collection of objects
manjulac 15-Feb-11 5:36am    
Thanks AlbinAbel,I got to know to bind objects to grid view in default.aspx.cs.but i am strucked in java script how can i fill my data to data source and bind the data in java script.

 
Share this answer
 
Comments
manjulac 15-Feb-11 5:38am    
Thanks mkgoud ,for valuable suggestion,I got to know to bind objects to grid view in default.aspx.cs.but i am strucked in java script how can i fill my data to data source and bind the data in java script.
m@dhu 16-Feb-11 0:36am    
This might help you
http://www.codeproject.com/KB/aspnet/JavaScriptGridView.aspx
Hi
For a collection of object refer my answer here.

display uploaded file dat into gridview[^]

It is an example using object datasource. you can change it according to your necessity
 
Share this answer
 
Use Excel File to Upload data into dataset and then apply dataset to gridview datasource. For paging simply use allowpaging of gridview........ :)
 
Share this answer
 
Comments
manjulac 15-Feb-11 5:38am    
Thanks Ashishmau,I got to know to bind objects to grid view in default.aspx.cs.but i am strucked in java script how can i fill my data to data source and bind the data in java script.
Hi Manjulac,

It's depend upon your where your data is stored. if you have a delimited file/XML file then you can bind the grid directly via dataset object and you don't need to create connections and use database specific components.

Regards,
Sunil Tiwari
 
Share this answer
 
Comments
manjulac 15-Feb-11 4:56am    
ok
Use local data source like array list,

Hope this[^] video might help you.
 
Share this answer
 
Comments
manjulac 15-Feb-11 5:39am    
Thanks Ramalinga Koushik,I got to know to bind objects to grid view in default.aspx.cs.but i am strucked in java script how can i fill my data to data source and bind the data in java script.

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