Assume you have a strongly typed collection of a class called Person. The
strongly typed collection implements IEnumerable so it can be databound to a
server control like a DataGrid. The Person class has several public
properties like FirstName, LastName, and Gender.
What steps would it take to allow the collection to be sorted using a
DataGrid?
Thanks in advance.
MarkHere is a great resource for implementing sorting for the datagrid:
http://msdn.microsoft.com/library/d...dWebControl.asp
"Mark" wrote:
> Assume you have a strongly typed collection of a class called Person. The
> strongly typed collection implements IEnumerable so it can be databound to
a
> server control like a DataGrid. The Person class has several public
> properties like FirstName, LastName, and Gender.
> What steps would it take to allow the collection to be sorted using a
> DataGrid?
> Thanks in advance.
> Mark
>
>
Thursday, March 22, 2012
Strongly Typed Collection - sort in DataGrid
Labels:
asp,
assume,
class,
collection,
databound,
datagrid,
ienumerable,
implements,
net,
sort,
strongly,
thestrongly,
typed
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment