Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > Datagrid with multiple row types

Reply
Thread Tools

Datagrid with multiple row types

 
 
Greif
Guest
Posts: n/a
 
      06-01-2005
I am somewhat new to using Datagrids.

I would like to present a datagrid with vairous different types of
styles/templates when selected/edited. Is there a way to dynamically build
the rowstyles depending on the row (data type/class).

Or, would it be easier to use custom web controls and create an instance of
a control depending on the data type/class. Is there a way to dynamically
create a web control and set it in the Datagrids row style at run-time
passing a parameter from the datagrid to 'initialize' the control.

I'm not sure if I'm sounding clear or not. I can expand further if required.
 
Reply With Quote
 
 
 
 
Eliyahu Goldin
Guest
Posts: n/a
 
      06-02-2005
Datagrid supports a number of styles and templates for various types of row.
A bit more advanced topic is how to change row appearance depending on the
data. For this you cab either databind visual properties to data columns or,
the most flexible way, to operate on the grid programmatically in
ItemDataBound or/and PreRender event.

Eliyahu

"Greif" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I am somewhat new to using Datagrids.
>
> I would like to present a datagrid with vairous different types of
> styles/templates when selected/edited. Is there a way to dynamically build
> the rowstyles depending on the row (data type/class).
>
> Or, would it be easier to use custom web controls and create an instance

of
> a control depending on the data type/class. Is there a way to dynamically
> create a web control and set it in the Datagrids row style at run-time
> passing a parameter from the datagrid to 'initialize' the control.
>
> I'm not sure if I'm sounding clear or not. I can expand further if

required.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ok I can do a totals row but how about a percentage row after each data row D ASP .Net Datagrid Control 0 05-23-2005 04:10 PM
Add row under selectedindex row of datagrid ujjc001@gmail.com ASP .Net 0 12-15-2004 12:01 AM
Add row under selectedindex row of datagrid ujjc001@gmail.com ASP .Net 0 12-15-2004 12:00 AM
How to add a new row to a datagrid with values of the selected row =?Utf-8?B?U3VyZXNo?= ASP .Net 1 11-22-2004 09:04 AM
Referencing Dataset row not Datagrid row Craig ASP .Net 2 11-02-2004 05:27 PM



Advertisments