开发者

Why is a DataGridView so row-centric?

开发者 https://www.devze.com 2022-12-24 13:03 出处:网络
Why is there a DataGridViewRow.Cells property, but not a DataGridViewColumn.Cells property? What\'s s开发者_运维技巧o important about rows that I\'ll never want to iterate down a column?

Why is there a DataGridViewRow.Cells property, but not a DataGridViewColumn.Cells property?

What's s开发者_运维技巧o important about rows that I'll never want to iterate down a column? I'm not saying that it makes it particularly difficult to do or anything, it just strikes me as oddly asymmetrical.

I'm implementing a "fill down" type behaviour, and it'd be handy is all.


I'd say it's simply a side-effect of the fact that relational databases are also row-centric.


In general terms, DataGridView functions to display attributes (as columns) for a list of like entities (as rows). It is not meant to emulate spreadsheet functionality.

0

精彩评论

暂无评论...
验证码 换一张
取 消