DataGrid Format Issue

  • Thread starter Thread starter Jim Heavey
  • Start date Start date
J

Jim Heavey

Hello, I have a datagrid which is bound to a datatable. I created the
"DataGridTableStyle" object and defined all of the columns that I wanted to
display. There was one column, however that I did not want to have
displayed and as such, I did not reference in the DataGridTableStyle.

When the Grid is displayed each row shows up with at "+" in the far left
side and if you press it, it displays the field name that I did not
reference.

How do I get rid of the "+" and ensure that that value is not displayed?

Thanks in advance for your assistance!!!!!!!!!
 
Jim:

I'm not an expert on the base grid (it's often quite brutal to use ;-)), but
in the past, if I wanted something not to be displayed, attach it to the
tablestyle, but set its column width to 0. That effectively makes it
invisible, but if you need to manipulate it for whatever reason you can so
that the underlying datatable/dataview is changed for instance, you still
can.

HTH,

Bill
 
Hello Jim,

Bind the grid to the DataTable to be displayed, not to the whole DataSet.
There's also a property on the grid called EnableNavigation or something
like that. Set this to false and the "+" signs will go away.
 
Back
Top