| |

VerySource

 Forgot password?
 Register
Search
View: 657|Reply: 5

How to tell if treeview has not selected any nodes datagridview has not selected any rows

[Copy link]

2

Threads

9

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

Post time: 2020-2-15 11:00:01
| Show all posts |Read mode
1 How to tell if treeview has not selected any nodes?
2 How to tell if no rows are selected by datagridview?
3 How to tell if a cell in datagridview is empty?
Reply

Use magic Report

0

Threads

16

Posts

12.00

Credits

Newbie

Rank: 1

Credits
12.00

 China

Post time: 2020-4-15 20:30:01
| Show all posts
1. if (treeView1.SelectedNode == null)
Reply

Use magic Report

0

Threads

16

Posts

12.00

Credits

Newbie

Rank: 1

Credits
12.00

 China

Post time: 2020-4-15 22:00:01
| Show all posts
2. dataGridView1.SelectedRows.Count> 0
Reply

Use magic Report

0

Threads

16

Posts

12.00

Credits

Newbie

Rank: 1

Credits
12.00

 China

Post time: 2020-4-15 23:00:01
| Show all posts
3. ataGridView1.SelectedRows [0] .Cells [9] ........
            dataGridView1.Rows [7] .Cells [9] .........
Reply

Use magic Report

2

Threads

9

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

 Author| Post time: 2020-4-16 13:15:01
| Show all posts
3 How to judge whether a cell in datagridview is empty?
——————————————————————————————
3. ataGridView1.SelectedRows [0] .Cells [9] ........
            dataGridView1.Rows [7] .Cells [9] .........
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-12 15:15:01
| Show all posts
treeView1.SelectedNode==null
dataGridView1.CurrentRow==null
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list