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...
ThanksMike
I must be going blind...
I found the Header.Caption property under the first place I thought I had looked
Under e.Layout.Bands(n).Columns(c)
Either intellisense screwed up (it has happened before) or I mistyped this and got to a 'similar' object.
Hello Mike,
I am glad that you were able to resolve your issue.
If you still would like to have an image into the column header you could use the Image property of the appearance object like:
ultraGrid1.DisplayLayout.Bands[Index].Columns["Key"].Header.Appearance.Image
Please feel free to let us know if you have any other questions with this matter.