- Apr 24, 2005
- 553
- 4
- 81
Hi Guys,
Is there a way to have named columns in the DataGridView control in .NET 2.0? So instead of saying,
grdMyGrid.Cells("AccountNumber") and grdMyGrid.Cells("Year"),
I'd say:
grdMyGrid.AccountNumber and grdMyGrid.Year
so it would resolve at design time and avoid run-time errors? So I'm looking to set up a property to match the name of my coilumn.
Big thanks.
Is there a way to have named columns in the DataGridView control in .NET 2.0? So instead of saying,
grdMyGrid.Cells("AccountNumber") and grdMyGrid.Cells("Year"),
I'd say:
grdMyGrid.AccountNumber and grdMyGrid.Year
so it would resolve at design time and avoid run-time errors? So I'm looking to set up a property to match the name of my coilumn.
Big thanks.