I was expecting this setting to affect the control itself, but I can't seem to add new rows just by having a DataGridView with AllowUserToAddRows set to true. Am I just rubbish at using my mouse and keyboard, or have I completely misunderstood this property? I suspect it's the latter, though I can't find much in the way of documentation to point me in the right direction.
EDIT: by the way, it's not that I'm rubbish, it seems to be something to do with using a List as the DataSource of the DataGridView; the little '*' just doesn't appear if I bind to a List.
How many rows can DataGridView handle? The MIT DataGrid is limited to pages of up to 100 rows. If you want larger pages, you will need to upgrade to Pro plan or above. By default, each page contains 100 rows.
The DataGridView control provides a powerful and flexible way to display data in a tabular format. You can use the DataGridView control to show read-only views of a small amount of data, or you can scale it to show editable views of very large sets of data.
The DataGrid control is limited to displaying data from an external data source. The DataGridView control, however, can display unbound data stored in the control, data from a bound data source, or bound and unbound data together.
Control Choice - Do you use ListView over GridView (was DataGrid) for ReadOnly? (Windows Forms only) Yes a ListView looks nicer than a DataGrid, but a Datagrid is better because it has more functionality (out of the box that is).
I solved this by changing STMTTRN from a List to a BindingList - List seems to have some very odd behaviour when used as a DataSource (see my other recent question, which is solved in the same way).
It's in generated code, but I'd already changed it from an Array to a List so BindingList is barely any extra trouble :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With