T
Tom Carter
I hope some datagrid expert can help me with this -- I have a datagrid
which I use to display, sort and filter data from a variety of data
tables based on a drop down list selection.
I have added a template column to this environment and what I
would like to know concerns specifically the OnDataBinding event for
the ItemTemplateColumn.
To that ItemTemplate Column I have added a label and I would like
to use the record id for each row shown to build the text to display
in this label. Essentially, what my question boils down to is -- Can
one use a c# function call in this manner; in order to set properties
of the label??
I have seen many examples where data stored in the database is
assigned using the 'DataBinder.Eval (Container.Item,"field_name");'
but I have not yet seen where a c# function is called that returns the
property.
If it can be done, I would appreciate any examples.
Tom
which I use to display, sort and filter data from a variety of data
tables based on a drop down list selection.
I have added a template column to this environment and what I
would like to know concerns specifically the OnDataBinding event for
the ItemTemplateColumn.
To that ItemTemplate Column I have added a label and I would like
to use the record id for each row shown to build the text to display
in this label. Essentially, what my question boils down to is -- Can
one use a c# function call in this manner; in order to set properties
of the label??
I have seen many examples where data stored in the database is
assigned using the 'DataBinder.Eval (Container.Item,"field_name");'
but I have not yet seen where a c# function is called that returns the
property.
If it can be done, I would appreciate any examples.
Tom