The DataSource for the DataGrid is like so;
DataSet DSAccountVenueRooms =
new DataSet();DSAccountVenueRooms = DataAccess.GetAccountVenueRooms(MainMenu.AccountID);
this.dgAccountVenueRoom.DataSource = DSAccountVenueRooms.Tables[0];The first Column in this DataGrid is a RoomID Value that I get to execute the next Stored Procedure to get the Data for that Room. So I need the first Column called RoomID but I do not need to show the user this Column as it means nothing to them!
Can this be done

Hide the first Column
EJP001
-mark
Program Manager
Microsoft
This post is provided "as-is"
Younis
Brian Ceccarelli
Could you please post your code again as it didn't make it onto this thread.
Gka
Raghuraman_ace
Maybe it's easier with VS 2005, but I haven't used it, so I don't know.
JamesGreene
this.oGrid.DataSource = null;
this.oGrid.TableStyles.Clear();
this.oGrid.TableStyles.Add(new DataGridTableStyle());
this.oGrid.TableStyles[0].MappingName = this.MyDataSet.Tables[0].TableName;
this.oGrid.TableStyles[0].GridColumnStyles.Add(new DataGridTextBoxColumn());
this.oGrid.TableStyles[0].GridColumnStyles[0].MappingName = "Description";
this.oGrid.TableStyles[0].GridColumnStyles.Add(new DataGridTextBoxColumn());
this.oGrid.TableStyles[0].GridColumnStyles[1].MappingName = "SortOrder";
this.oGrid.SetDataBinding(this.oDataFromXML, this.MyDataSet.Tables[0].TableName);
achopp
I have had a look at the dataGrid properties and I can't seem to get to the Columns of a dataGrid to set the first column to a width of 0.
Can you show how
Perter