| |

VerySource

 Forgot password?
 Register
Search
View: 674|Reply: 2

DataGrid is not bound to a database, how to set the cell content directly

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-21 08:20:02
| Show all posts |Read mode
Excuse me:
    The DataGrid control is not bound to the database, but can dynamically fill the contents of a two-dimensional array into the cells. Can it be achieved?
    If you still don't involve the database, but use other classes to achieve the same effect.
    
    Please masters. I just learned MFC, and I hope to introduce it in detail, thank you very much!
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-1-30 17:09:02
| Show all posts
Waiting online ...
Reply

Use magic Report

1

Threads

8

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 Japan

Post time: 2020-8-8 03:15:01
| Show all posts
m_DataGrid.SetCol(short newcol);//Select cell column
m_DataGrid.SetRow(short newrow);//Select cell row
m_DataGrid.SetText(CString newtext);//Enter the cell content
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