asp.net.ph

DataGridSortCommandEventArgs.CommandSource Property

System.Web.UI.WebControls Namespace   DataGridSortCommandEventArgs Class


Returns the source of the command.

Syntax


Script [ Object variable = ] DataGridSortCommandEventArgs.CommandSource

Property Value


variable The source of the command.

The property is read only with no default value.

Remarks

Use the CommandSource property to determine the command source that raised the SortCommand event. Because this event is only raised when a link is clicked in the header of the DataGrid control, the returned source is a DataGridItem that represents the header. This property can be used to programmatically control the header.

See Also

DataGridSortCommandEventArgsMembers   DataGrid.AllowSorting Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph