I am using datagridview on c# and im feeding it with a datasource object. If AutoGenerateColumns
is true
, everything works fine and all the columns gets generated with their content. But I want to display only the 1st column, and use the info on the rest of the columns for the 1st column tooltip.
I tried setting AutoGenerateColumns
to false
and created a column called like the 1st column added when AutoGenerateColumns
is true
, but no rows are being added when I do this.
Whats the right way to do it?
Update:
Adding [Browsable(false)]
above all the fields i want to hide worked :)
Now, how could I use data from the "hidden" columns and use them for the 1st column cells tooltips?