Home > Net >  C # read database according to data in tabular form, with what method is better
C # read database according to data in tabular form, with what method is better

Time:03-12

Use a DataGridView is good, or a List? Or do you have any other better method, thank you for your answer before
Database data quantity should be less than 10 t

CodePudding user response:


You think how how, many ways

CodePudding user response:

DataGridView control.
The List is class (type)


 
DataGridView. The DataSource=List;


So what is your problem?

In addition


reference
database data quantity should be less than 10 t


10 T the T is "a", or the capacity of 10 T?

CodePudding user response:

Are you trying to say is a ListView and DataGridView!!!!!!
DGV is more convenient, direct binding can

CodePudding user response:

refer to the second floor by_ love reply:
DataGridView control.
The List is class (type)


 
DataGridView. The DataSource=List;


So what is your problem?

In addition


reference
database data quantity should be less than 10 t


10 T the T is "a", or the capacity of 10 T?

In the database for the first time, sorry, too many not know ah, I'll find the way the show database under two DataGridView with ListView, which is convenient to use, so want to ask next, or have a better display method of database contents,
10 is the actual capacity, should not be so big

CodePudding user response:

reference Bridge_go reply: 3/f
are you trying to say is a ListView and DataGridView!!!!!!!!!
DGV is more convenient, direct binding is ok

Yes, but which is a large quantity of data is more efficient to use ah, thank you for your answer

CodePudding user response:

If the display tabular data, the datagrid with better, if the record number of many, also need to consider the paging display;
Lists are used for a small amount of a single data display,

CodePudding user response:

There is a problem, can according to the date, a table method to do a week, so did the query

CodePudding user response:

DataGridView
  •  Tags:  
  • C#
  • Related