Skip to Content
0
Mar 01, 2006 at 10:31 AM

How to sort a table column

27 Views

Hi All,

I'm trying to implement a table sort.

I changed the column's sort state to Ascending and then I see the Sort Asc/Desc arrows on the columns title but when I press the arrows the Sort event doesn't fired.

Also, I tried to do it by regular button.

I write the following code in the button's action:

Table1.Columns("FirstName").SortState = sortState.ASCENDING

Table1.SortColumn("FirstName")

I get

"Input string was not in a correct format"

I tried also with Integer index instead of "FirstName", still - didn't help

What steps need to be done in order to implement table sort?

Thanks,

Omri