Click here to Skip to main content
15,894,343 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i m building descktop application in vb.new with c#.i want to display data from database in tabular format without gridview..how i do it?
Posted
Comments
Richard MacCutchan 13-Dec-14 10:39am    
i m building descktop application in vb.new with c#
That is a contradiction; please explain which language you are using. And if you do not wish to use a GridView control then you will have to format all the information manually, no mean task.
DamithSL 13-Dec-14 11:07am    
why you can't use grodview?
Anisuzzaman Sumon 14-Dec-14 0:24am    
What language is actually using? Nice question .However what thing you actually want to do and why you do not want to use gridview?

1 solution

Once you have your datatable (in c# or vb.net) you can replicate this to your user by iterating through the columns and rows and creating a HTML table or a series of nested Divs.

But the big question, as DamithSL has already mentioned, is why?

I'm guessing there is a reason you do not wish to use a gridview. But as displaying data in a tabular format is why the gridview was invented, it's difficult to give you an alternative without re-inventing the wheel.
 
Share this answer
 
v2
Comments
Richard MacCutchan 15-Dec-14 7:14am    
Why would they want HTML in a desktop app?
John J Mclean 15-Dec-14 10:17am    
@Richard MacCutchan You are quite correct. I completely missed the Desktop bit and when straight to the GridView.

For a desktop app you can use nested panels instead of a DataGridView. But again, why?

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