Wondering if this is doable:<BR><BR>I have a "dynamic" SQL: Based on what users select from 4 listboxes, I build a dynamic sql with the appropriate columns and table joins. Only 4 coulmns/table joins WILL always exist in the sql statement. I have those 4 columns and the datagrid binding code in the aspx file.<BR><BR> so far so good. Everything works <BR><BR>Now, I want to display the "dynamic" columns. I can NOT have the DataGrid binding in the aspx file because if the column is not in the dynamic SQL, nothing will be bound to that column and i'll get an error. I can NOT bind the cloumn and hide it because the results depends on what the user selects and what the dynamic column/joins are <BR><BR>Anyway to maybe build the datagrid column in the code behind OR have if-else in the aspx file ...If the column is selected, bind the data to the column and display??