I have a list of objects (PrintJob) that I bind to a DataGridView. Here's a cut out version of the PrintJob object (don't want to annoy you completely !!):
public class PrintJob { private long pagesToPrint; public long PagesToPrint { get { return pagesToPrint; } } private long recipientRef; public long RecipientRef { get { return recipientRef; } set { recipientRef = value; } } }
and I make a list of these objects and bind to the dataGridView as follows:
dataGridView1.DataSource = uiModel.GetPrintJobs();
is everything okay so far?
Everything displays the fine title of the column headings, which show the same thing as the property name in my object, that is, "PagesToPrint" appears in the column heading, where ideally I would like it to display "Pages for printing" in the heading text.
How do I get the text of the column heading to show something more readable - I think based on the name of the property.
Greetings.
source share