Questions tagged [gridview-sorting]

Process of data arrangement in a gridview control

It is a process of arranging the data displayed in the gridview control in ascending or descending order based on user code to suit user needs.

94 questions
0
votes
2 answers

How to sort non-uniform strings that contain numeric values?

I'm having some trouble getting a GridView column of strings to sort properly. The type of values in the column look like: $99,999, $200, /500, /50,000 Basically non-decimal currency values that may have a '/' instead of a '$' Does anyone have a…
tmaurst
  • 433
  • 3
  • 14
  • 30
0
votes
1 answer

Get column datatype, sort direction onload, change sort order on first click of header in tablesorter

I have a grid view, which has several columns, one of which is a numeric column. When the grid loads first time, the data on the numeric column gets sorted on the server side itself and gets rendered. I apply client side sorting on another column…
Ven
  • 153
  • 2
  • 11
0
votes
2 answers

Sorting a php table on the basis of just one particular field

Hi I am trying to sort this table on the basis of $fratio. The one who has the highest $fratio will be placed as Number 1 in the table. Here's the code that I have worked so far - // MySQL connection. $connection =…
Swayam
  • 25
  • 6
0
votes
1 answer

Why doesn't my gridview's column click toggle the sort direction?

Why doesn't my gridview's column click toggle the sort direction? It seems to only sort the rows the first time I click on it, any other clicks just refreshes the page w/o any change in sort direction. btw I have a OnSorting method that I call to…
Blankman
  • 236,778
  • 296
  • 715
  • 1,125
0
votes
2 answers
0
votes
1 answer

how to sort the datagridview column Got an error : Argument NUll Exception Was Unhandled

I am binding the data grid view by using the following linq to entity framework query by using the following code.. private void EquipmentFinder_Load(object sender, EventArgs e) { SetupCategories(); …
Enigma State
  • 16,494
  • 25
  • 86
  • 179
0
votes
2 answers

GridView sorting with additional functions

I have a GridView which is bound automaticaly to a SqlDataSource. I have a function which goes thru the GridView and colors red certain cells according to their content. I also enabled sorting on the GridView on all columns. When the page first…
Dov Miller
  • 1,698
  • 4
  • 30
  • 43
0
votes
0 answers

How to disable sorting for few rows in asp.net gridview

Hi i'm showing some data in gridview which is sortable. I want to disable sorting for few rows based when date is not null. below is the code griddata.datasource = dt; griddata.databind(); if(condtion...) griddata.Rows[2].Enabled =…
0
votes
0 answers

Yii2 gridView Sort last record from a hasMany relation

I'm trying use a sort (in header of gridView) by 'id_state'last record from a hasMany relation, and the sort not apply correctly. tables: formation id, name formation_registration id, id_formation, id_user formation_registration_steps id,…
Moutinho
  • 321
  • 3
  • 14
0
votes
1 answer

How To Sort Nested ObjectData Flutter

I am trying to sort a JSON object that has nested data. I want to refresh the List of object each time a button is pressed but, I am having issues doing so. I am trying to sort by price and this is my code so far: Data: { "id": 152, …
A True Novice
  • 660
  • 8
  • 28
0
votes
2 answers

Sorting a string of numbers into a grid

I'm needing to sort a long list of ID numbers into 'grids' of 8 ID numbers down (8 cells/rows), 6 ID numbers across (or 6 columns long etc), sorted from smallest to largest ID number. When one 'grid' is 'full', the numbers which cannot fit in the…
H D
  • 3
  • 2
0
votes
0 answers

jqGrid Date format sorting in DD/MM/YYYY

I want to sort date in the jqgrid. Below is my code line. Data.push({ label: 'Upload Date', name: 'UploadedDate', width: 300,formatter:'date', formatoptions: { srcformat: "d/m/Y", newformat: "d/m/Y" }}); I have also tried : Data.push({ label:…
Learner
  • 139
  • 1
  • 2
  • 12
0
votes
1 answer

Sorting by clicking column returns back all columns in C#

I have a gridview table that has auto generated columns and the rows in those columns can be sorted by clicking the column name since I have "AllowSorting" on. I also have checkbox lists that the user can check or uncheck to filter columns in and…
derekg8881
  • 97
  • 7
0
votes
2 answers

C# datagridview Columns clear on sort

var ds = new DataSet(); ds.ReadXml(XMLFile); DataGridLogView.DataSource = ds.Tables["Header"]; DataGridLogView.DataMember = "Data"; DataGridLogView.Columns.Add("5", "Record #"); …
0
votes
1 answer

Java Sorting Tabular Data and Output to JSON?

Picture Excel data, rows and columns, with the ability to sort either for ASC or DESC on any column. I'm looking to replicate this functionality within Java then output the data into JSON - This JSON data is being placed within an API that can be…