DataGridTableStyle problem
Hi.
I was trying to play with the datagrid example at that page:
http://www.c-sharpcorner.com//Code/2002/Mar/AddingControlsToDataGridTA.asp
But I am getting error telling me that some properties doesn't exist for predefined the DataGridTableStype page like that:
...\Form1.cs(91): 'System.Windows.Forms.DataGridTableStyle' does not contain a definition for 'RowHeadersVisible'
...\Form1.cs(92): 'System.Windows.Forms.DataGridTableStyle' does not contain a definition for 'HeaderBackColor'
...\Form1.cs(93): 'System.Windows.Forms.DataGridTableStyle' does not contain a definition for 'AllowSorting'
...\Form1.cs(94): 'System.Windows.Forms.DataGridTableStyle' does not contain a definition for 'HeaderBackColor'
...\Form1.cs(95): 'System.Windows.Forms.DataGridTableStyle' does not contain a definition for 'HeaderForeColor'
...\Form1.cs(96): 'System.Windows.Forms.DataGridTableStyle' does not contain a definition for 'HeaderFont'
...\Form1.cs(97): 'System.Windows.Forms.DataGridTableStyle' does not contain a definition for 'GridLineColor'
...\Form1.cs(98): 'System.Windows.Forms.DataGridTableStyle' does not contain a definition for 'PreferredRowHeight'
I looked in the doc and these object properties really exist, what is my problem? I am using MDE2003. Maybe it has something to do with the fact that in my piece of code, I am not loading anything in the datagrid yet just trying to set the datagrid style.
Thanks,
Matt

Answers
Know the answer? Post it. Somebody with the same question will find it here.