DataGrid Question

  • Thread starter Thread starter Jason .
  • Start date Start date
J

Jason .

I have a stored procedure that returns data back in two columns:

ReportName
Type

The Type field can have the text "Long" or "Short". So a short snippet
of the data would look like this:

Report1 Long
Report1 Short
Report2 Long
Report3 Long
Report3 Short
Report4 Long
Report5 Short


I would like to put in a DataGrid but layed out like this:

Report1 Long Short
Report2 Long
Report3 Long Short
Report4 Long
Report5 Short

I did this in classic asp by looping through an array. Can something
like this be done using the datagrid or do I have to do the same sort of
functionality in .NET?
 
if you are using template column then add two template columns say with
asp:label object bound to the same datafield ie the .Text being set to the
same column Type.
add visible attribute within which you again check the value of datafield
and compare it with long or short in each and mark it true or false based on
that

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
 
Back
Top