Find Jobs
Hire Freelancers

VB.NET: sorting a gridview

$100-200 USD

Completed
Posted almost 12 years ago

$100-200 USD

Paid on delivery
I created a gridview function that has as inputs: a data table and a meta data table. I would like to add functionality to this function so the user can sort the gridview by clicking on the header column. I am open to other enhancements like a filter option or paging. Please specify the costs of these extra's. ## Deliverables **Current function:** Public Function MyGrid(ByVal dt As [login to view URL], ByVal dtFieldMetaData As [login to view URL]) As GridView Dim grd As New GridView Dim i As Integer Dim the_val As String [login to view URL] = [login to view URL] [login to view URL] = dt [login to view URL] = 9 [login to view URL] = [login to view URL](89, 161, 62) [login to view URL] = [login to view URL] [login to view URL] = [login to view URL](62,184, 69) [login to view URL] = [login to view URL] [login to view URL] = [login to view URL](153, 59, 2)[login to view URL] = [login to view URL] [login to view URL]() i = 0 For Each row In [login to view URL] the_val = [login to view URL]("alignment") If IsDBNull([login to view URL]("rpt_det_field_description")) = False Then [login to view URL](0).Cells(i).ToolTip = [login to view URL]("rpt_det_field_description") End If For j = 0 To [login to view URL] - 1 Select Case the_val Case "L" [login to view URL](j).Cells(i).HorizontalAlign = [login to view URL] Case "R" [login to view URL](j).Cells(i).HorizontalAlign = [login to view URL] Case "M" [login to view URL](j).Cells(i).HorizontalAlign = [login to view URL] Case Else [login to view URL](j).Cells(i).HorizontalAlign = [login to view URL] End Select Next j i = i + 1 Next row Return grd End Function **SAMPLE INPUT DATA:** **1) The input table** | Parameter | Waarde | | --------------- | -------------------------------- | | Run ID | 2 | | Datum run | 20 Jan 2012 | | Object | Verhuureenheid | | Meester relatie | VERHUUREENHEID hoort bij COMPLEX | **2) the meta data table** <colgroup> <col /> <col /> <col /> <col /> <col /> <col /></colgroup> | **form_id** | **rpt_det_fld_name** | **function_field_col_order** | **basic_type** | **alignment** | **rpt_det_field_descripion** | | 196 | Parameter | 1 | CHAR | L | Bla bla | | 196 | Waarde | 2 | CHAR | L | Bla bla |
Project ID: 2754446

About the project

2 proposals
Remote project
Active 12 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$5 USD in 14 days
4.7 (9 reviews)
2.5
2.5
2 freelancers are bidding on average $23 USD for this job
User Avatar
See private message.
$40 USD in 14 days
5.0 (6 reviews)
2.5
2.5

About the client

Flag of NETHERLANDS
Netherlands
5.0
19
Member since Jun 27, 2012

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.