kalodakilla 0 Light Poster

Hi, i'm learning to use the CrystalReportViewer.

From my application, if i click sort, the data in the viewer will be sort due to ProductName, so i try to use the SortFields, but everytime i try to call something like SortFields[0], i always get an error saying "bad index"

Please have a look at my code and help me, thanks a lot, the problem is in Click event of btnSort

http://dl.dropbox.com/u/1089304/Assignment13.rar

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.