0
Answer

Using a datagrid in C#?

kobus_2000

kobus_2000

19y
1.8k
1

I have been using listviews up to now, but decided to explore datadrids. Is there a way to make it appear more user friendly to the end user? Can it be expanded fully? At the moment when the form with the datagrid on, opens, the datagrid is in a collapsed state. I have used the Expand property, but I still have to click on the word ‘Table’ to expand it further to be able to see the rows.

 

There are also the icons that “Navigates back to the parent rows” and “Shows/Hides the parent rows for the current set of child rows.” Can they be disabled or made invisible?

 

Is it also possible to set some columns so that the values in them cannot be changed?

 

How can I validate the values the user will input in the rows? For example check that the input is float?

 

Thanks and I apologise for the multitude of questions.

 

Kobus