tags:

views:

122

answers:

4

I don't know why we need a grid when building a Windows form! What can't we do without a grid control in a Windows form then? Please discuss.

+1  A: 

A grid control is very useful for basic spreadsheet and database listing. You can emulate it with a list view in column mode, but a true grid control is much more powerful. In the old days of VB grid control was so used and useful, that several third party controls were marketed.

Lorenzo
+4  A: 

I think it's the wpf window you're mentioning by windows form.

Grid is used for layout purpose. You can also get rid of it and use other container controls.

Veer
+1 well spotted
mr.b
@mr.b: Thanks bro!!!
Veer
A: 

I would say that there was nothing that you couldn't do without a grid control. However, as has already been pointed out, we use controls because they save work. What's the point of reinventing the wheel?

pm_2
+1  A: 

Grid and other panels benefits:

  1. Layout. Allow to set relative bound of content to another content.
  2. Position. No coordinates like in WinForms and as result more flexible view.
  3. Size of control depends on content.

Summary:

  • Flaxible view on different screen and font sizes.
SeeSharp