Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1745
How to change column header in grid
posted

I have a bound grid that is loaded from a database - via a DataTable / DdataAdapter.

I need to change the column header for any column that is required.  (ie. Not Null in the table definition)

Ideally I would like to add an icon, but simply adding an asterix to the header text would be OK too.

I have not been able to find any Text or Caption property for the column headers though. The one reference I did find indicated that it was read only ... which can not be true since the headers get set based on the column names in the table. (I can not change the column names in the table since that would cause updates to fail)

I must be missing something obvious here...

Thanks
Mike