当前位置:网站首页>A series of problems of C DataGridView binding list
A series of problems of C DataGridView binding list
2022-04-23 21:25:00 【Plant a sweet smell】
problem 1. Binding data source is list after , The interface cannot be sorted ?
answer :dgvList.DataSource = _list; Can't sort ,
dgvList.DataSource = DataTable Yes. ;
problem 2. Binding data source is list after , The interface cannot move up and down ?
answer :dgvList.DataSource = _list; You can delete and add , Can't move up and down , because List The index determines ,
dgvList.DataSource = DataTable Yes. ;
problem 2. Binding data source is list after , Reassign list There will be out of index Error of ?
answer :list Reassign , First set the data source to null
dgvList.DataSource = null;
dgvList.DataSource = _list;
dgvList.DataSource = DataTable Yes. ;
版权声明
本文为[Plant a sweet smell]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/110/202204200619557124.html
边栏推荐
- 在线时序流程图制作工具
- Lunch on the 23rd day at home
- Addition, deletion, modification and query of MySQL advanced table
- Alibaba cloud responded to the disclosure of user registration information
- C#,打印漂亮的贝尔三角形(Bell Triangle)的源程序
- Thinking after learning to type
- Resolve the "chromedriver executable needs to be in path" error
- IOT 设计与开发
- Unit function expansion
- Automatic heap dump using MBean
猜你喜欢
[leetcode refers to offer 32 - III. print binary tree III from top to bottom (medium)]
Write table of MySQL Foundation (create table)
Plato Farm元宇宙IEO上线四大,链上交易颇高
Problem brushing plan -- dynamic programming (IV)
Lunch on the 23rd day at home
Subcontracting of wechat applet based on uni app
Question brushing plan -- backtracking method (I)
Graph traversal - BFS, DFS
3-5 obtaining cookies through XSS and the use of XSS background management system
Flomo software recommendation
随机推荐
This paper solves the cross domain problem of browser
airbase 初步分析
[leetcode refers to offer 22. The penultimate node in the linked list (simple)]
MySQL basic collection
Tencent cloud has two sides in an hour, which is almost as terrible as one side..
Reference of custom message in ROS function pack failed
The more you use the computer, the slower it will be? Recovery method of file accidental deletion
Another data analysis artifact: Polaris is really powerful
IOT design and development
DeNO 1.13.2 release
Sharpness difference (SD) calculation method of image reconstruction and generation domain index
How to learn software testing? Self study or training? After reading this article, you will understand
1. Finishing huazi Mianjing -- 1
Keras. Layers introduction to various layers
Zhongchuang storage | how to choose a useful distributed storage cloud disk
Common commands of MySQL in Linux
[leetcode refers to offer 18. Delete the node of the linked list (simple)]
Google 尝试在 Chrome 中使用 Rust
[leetcode refers to offer 42. Maximum sum of continuous subarrays (simple)]
South Korea may ban apple and Google from offering commission to developers, the first in the world