asp .net datagrid

  • Thread starter Thread starter Carlos
  • Start date Start date
C

Carlos

Hi all,

Can a datagrid be used to report the result set of one column only.
What would be the recommended way of reporting. Can dynamic
labels be created as values are being read?

Thanks!

Carlos
 
Carlos,

You can use any control that suit your page design, get the value from
database in code-behind and assign it to your control.

Eliyahu
 
Carlos,

Yes, your datagrid can have only one column.

Yes, you can create your own controls on the fly--e.g. add myPlaceHolder to
the form, and then at run-time myPlaceHolder.controls.add(new myLabel, etc.).

There's not enough information to give a "recommended" way. Use datagrid if
you want sorting, paging, etc. and are content to only show vertically, else
consider a lighter-weight control like datalist or repeater. I'd probably go
with one of these canned controls versus rolling your own, but it depends on
what you're trying to do.

hth,

Bill
 
Back
Top