J
Joe Goeke
I am attempting to use a DataGrid to dynamically display data based on what
category the user picks. My data is in a SQL Server DB. My current problem
is that I can't seem to find the best way to display the data in the
DataGrid.
For example, when the user picks a category (wing nuts), I will have data in
the Description field, description1 field, and the Dimension1 field. All
other fields in the DB will be null. If the user picks screws, then I will
have data in the Description, Description1, description2, description3,
Dimension1, dimension2, and dimension 3 fields, with all other fields being
null.
My quandry is that I can't figure out the best way to do this. Should I
write a SQL statement that does not return the null fields or should I try
to not display the null fields when populating the DataGrid. I have been
currently working on this for a week and have not had much luck in finding
the answer.
I have done this same thing in Classic ASP, but am having trouble with an
ASP.NET solution.
Thanks in advance for any assistance.
Joe
category the user picks. My data is in a SQL Server DB. My current problem
is that I can't seem to find the best way to display the data in the
DataGrid.
For example, when the user picks a category (wing nuts), I will have data in
the Description field, description1 field, and the Dimension1 field. All
other fields in the DB will be null. If the user picks screws, then I will
have data in the Description, Description1, description2, description3,
Dimension1, dimension2, and dimension 3 fields, with all other fields being
null.
My quandry is that I can't figure out the best way to do this. Should I
write a SQL statement that does not return the null fields or should I try
to not display the null fields when populating the DataGrid. I have been
currently working on this for a week and have not had much luck in finding
the answer.
I have done this same thing in Classic ASP, but am having trouble with an
ASP.NET solution.
Thanks in advance for any assistance.
Joe