i want to bind some tabular data in wpf i just want to know that which control is more sufficient for this purpose Grid view ,list view or listbox
thanks in advance
shashank
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
ListBox and ListView wo/GridView:
Best for presenting data in a non-tabular way – ie. in a long list with read-only data.
ListView w/GridView:
Great for presenting read-only data in a tabular way with no need for sorting (you have to implement sorting yourself) – has a few issues with calculating the width of the columns when you change the datasource after it was originally created.
DataGrid
Great for presenting rich editing and sorting capabilities out of the box. Simple properties will enable sorting – and you have automatic editing. Somewhat more complex though and is a a lot heavier than the other alternatives performance-wise.