I have a requirement where I need to dynamically bind a child table cell to a specific DataTable column depending on a value.
To be more specific, I have 2 colums in a DataTable - Name and Role. I need to have 1 column in my GGC called RoleOrName such that, for a particular row, if Name is empty in the DataRow, I must bind that particular cell to Role, otherwise I must bind it to Name.
This means that in the GGC column RoleOrName there will be some cells bound to Role and some cells bound to Name column of the DataTable. RoleOrName is a read-only column so I am not worried abt saving any values back to the Dataset.
I am assuming this kind of a thing needs to be done in the QueryCellStyleInfo event but I dont know how. Please Help.