Cannot find TableStyles property of DataGridView (DataGrid)

It's a bug of Visual Studio 2005. Example:
DataGridTableStyle columns = new DataGridTableStyle();
columns.MappingName = "Test";
DataGridIconColumn colIcon = new DataGridIconColumn();
colIcon.MappingName = "ID";
columns.GridColumnStyles.Add(colIcon);
myDataGridView.TableStyles.Add(columns); <= our bug is here
The above sample codes is used to format column style (add icon to datagridcolumn).

We cannot find TableStyles property of DataGridView. This is the bug :) and fixed by Microsoft in March 2007. Visual Studio 2005 sevice pack 1 (SP1) is avaiable for downloading at:
http://msdn2.microsoft.com/en-us/vstudio/bb265237.aspx

Happy programming :)!

Comments

MisterDudeGuy said…
This comment has been removed by the author.
MisterDudeGuy said…
Hi, I know this is an old thread, but I installed SP1 and I still don't have the TableStyles property for the datagridview. Any other tips?

Thanks a lot