Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > Generic DataBind and ItemTemplate

Thread Tools

Generic DataBind and ItemTemplate

Posts: n/a
Hi !

The DataGrid seems to be very good at presenting data in a convenient
It accepts anything that supports a interface and that gives me
opportunity to provide my own datasource, something I really like !

Though, when it comes to updating my datasource with values from the
datagrid it becomes a bit more difficult.

The DataGrid doesn't (according to my opinion) provide a resonable
support for getting value from the cells to the datasource.
I therefore made my own DataGrid in order to simplify transport of
data from the grid to my datasource.

It worked out just fine until I had to convert a column into a
My implementation of the *generic* transport of data from the datagrid
to my datasource depends on the DataField attribute, which I can
obtain from a ordinal BoundColumn but not from a TemplateColumn (as
far as I know).

If I have misunderstoud something about templatecolumns, please let me
know how to obtain a templatecolumn's DataField.

If it so *bad* as I think it, has any of you talented people made a
DataGrid that in a generic way handles transport of data from the grid
to your own datasource ?

I really would appreciate some guidance.....


// Jonas
Reply With Quote

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
generic interfaces with generic methods Murat Tasan Java 1 02-03-2009 12:17 PM
Generic class in a non generic class Java 2 07-04-2006 07:24 AM
Adjusting ItemTemplate to show non-empty fields during Databind SteveB ASP .Net 6 11-19-2004 01:39 AM
can code inside a Repeater's ItemTemplate modify controls in the ItemTemplate? Bennett Haselton ASP .Net 1 09-24-2004 01:59 AM
BUG in DataBind? After .DataBind there are more DataGrid Items than DataSet Rows! Michael ASP .Net Datagrid Control 0 12-29-2003 07:47 PM