Click here to Skip to main content
15,884,176 members
Everything / Grid

Grid

grid

Great Reads

by tugrulGtx
A walkthrough for a grid implementation of "particle in cell" problem to improve performance of axis-aligned bounding-box (AABB) collision checking in various scenarios
by Nitij
Lightweight and easy to use JavaScript plugin to create UI Grids
by Levente Kupás
If you have big reports which run slowly, you may use this T-SQL based engine to speed-up them.
by ASP.NET Community
Extending Grid View Control of ASP .NETIf you want to modify some functionality of existing Grid View control of ASP .Net then you always have the

Latest Articles

by ToughDev
How to fix ‘Search fields undefined’ error when generating source code for a Scriptcase gridview
by tugrulGtx
A walkthrough for a grid implementation of "particle in cell" problem to improve performance of axis-aligned bounding-box (AABB) collision checking in various scenarios
by Darren G441
How to build a matrix display to represent a many-to-many entity relationship
by Sannyok
Extension of standard pagingtoolbar

All Articles

Sort by Score

Grid 

16 Apr 2022 by tugrulGtx
A walkthrough for a grid implementation of "particle in cell" problem to improve performance of axis-aligned bounding-box (AABB) collision checking in various scenarios
27 Apr 2014 by Nitij
Lightweight and easy to use JavaScript plugin to create UI Grids
20 Jun 2013 by Levente Kupás
If you have big reports which run slowly, you may use this T-SQL based engine to speed-up them.
8 Aug 2013 by Antariksh Verma
Hi ,After doing lot of R&D in Kendo UI i got that if we want sorting ,filtering and paging on client side we have to add .ServerOperation(false) so that all functionality like Sorting and filtering works on client side.
11 May 2010 by Michel Godfroid
Eh, it's a little more complicated than that.First you'll need a parallellisation framework. OpenMPI works fine with Sun Grid Engine.The number of threads is irrelevant, if you use the libraries well, the grid will be able to optimise the number of threads for you ( depending on current...
1 Feb 2012 by Sridhar Patnayak
Look these links.Similar post:How to display rowspan and colspan in gridview[^]http://marss.co.ua/MergingGridViewHeaderColumns.aspx[^]ThanksSP
12 Mar 2013 by Am Gayathri
Hi, I want to show one image inside my datatable. Am using code, dr = dt.newrow(); dr[0]= dt.addrow(dr);How can i do this?Here am checking some values, For example the value in any cell is greater than 50 the it should show one...
30 Jun 2009 by ASP.NET Community
Extending Grid View Control of ASP .NETIf you want to modify some functionality of existing Grid View control of ASP .Net then you always have the
12 Apr 2014 by _Noctis_
How to use Sublime text editor to help with your VS development
30 Jan 2017 by Darren G441
How to build a matrix display to represent a many-to-many entity relationship
3 Jan 2023 by OriginalGriff
Pretty much all tables work the same way as a calendar: days across, weeks down: February Sun Mon Tue Wed Thu Fri Sat W1 01 02 03 04 05 06 07 W2 08 09 10 11 12 13 14 W3 15 16 17 18 19 20 21 W4 22 23 24 25 ...
21 Feb 2024 by Patrice T
Quote: How do I prevent roads from disappearing when the player moves through them in a grid-based game? - C programming Replace /* Clear the player's previous position */ grid[*prevPlayerRow][*prevPlayerCol] = ' '; with /* Clear...
30 Mar 2024 by k5054
If I were doing this, I might be tempted to track the grid, the player and the car(s) separately, something like: struct position { int row, col }; struct position player; struct vehicle { char direction; struct position pos; }; // and...
30 Mar 2024 by merano99
To restore the background position, the old background can be saved with its position before it is overwritten by cars or players. As soon as the field is free again, the saved position can be restored. An alternative would be to use a copy of...
20 Dec 2010 by JF2015
Hi,see this excellent article:MFC Grid control 2.27[^]
20 Dec 2010 by ShilpiP
Hi,There are many articles in codeproject for Grid control with MFC.Grid Control Re-dux with Smooth Scroll and Composite Cell->[^]CTreeGridCtrl - A Grid Control with Tree Like Functionalities->[^]http://www.codeproject.com/KB/grid/-> [^]
11 Jan 2011 by fjdiewornncalwe
You may wish to post this question to The Telerik Forums. By posting there your question will be focused to the users who actually use the controls.A quick search on that site for "GridButtonColumn ItemCommand" resulted in 232 results. Check them out.Cheers.
18 Mar 2011 by Not Active
The sorting is being done on the client side so of course when you get to the server it is not going to be sorted (remember how databinding works?). You will need to use some JavaScript to post the data, in the correct order. Using a AJAX this is not difficult. Alternatively, you would need to...
18 Mar 2011 by srinivaskalagara
From your description It's look like you are doing sorting directly on Grid itself.Why don't you perform all your Grid Operations(Sort,Edit,Delete) on dataset and finally bind that resultset to Grid for fresh view.Update whatever the priorities you want on Dataset itself and bind it to Grid.You...
12 Aug 2011 by #realJSOP
Depending on how your colleciton items are designed, you may have to rebind your data source.If the items in the collection inherit INotifyPropertyChanged, the grid will automatically update.
8 May 2012 by aliasad106
i am using DevExpress Grid Control in my desktop application Form. it has column From_Date. I made it editable and i enter the date via DateTimeEdit which is Grid's own. The problem is when i want to use keyboad Arrow Keys to change values of date time Picker in Grid Cell, It loses it focus to...
19 May 2012 by fct2004
The row and column properties for a WPF Grid are really attached dependency properties. So, certain static methods must be included inorder for those properties to be usable in XAML. You only need to loop through the children of the Grid to make sure you're going through the objects in the grid,...
5 Feb 2013 by Abhinav S
TryExpanding / Collapsing GridView Columns with Smooth Dynamic Effect[^]Column resizing, try here - http://blog.lavablast.com/post/2007/11/08/ASPNET-GridView-column-resizing.aspx[^].
7 Mar 2013 by pradiprenushe
Add rowdeleting event.protected void gridview1_RowDeleting(object sender, GridViewDeleteEventArgs e) { int ID = (int)gridview1.DataKeys[e.RowIndex].Value; // primary key // you can write code here to delete record using ID// use sql query to delete data//e.g String strQuery =...
23 Apr 2013 by Vasudevan Deepak Kumar
Which is the recommended good control for ASP.NET MVC? I tried and used jqGrid but because it has a separate request to load the data, it seemed to be slow and the manager rejected it with the citation that it is slow. ASP.NET MVC4 Razor does not seem to be supporting the standard grid...
23 Apr 2013 by db7uk
Have you tried AJAX based CRUD tables using ASP.NET MVC 3 and jTable jQuery plug-in[^]There are others but that is the one I have used. Problem is, it looks like Infragistics / Telerik companies do the best ones but they are pay for controls....
15 May 2013 by Leslieytx
Every time you remove a rowdefinition, you need to delete every control in this row and redefine the whole rowdefiniton.
21 Jun 2013 by Mahesh Bailwal
You can use JavaScript window.parent object to access iframe parent page. Below is sample for you reference.Page1.aspx ...
10 Jul 2013 by Deenuji
u try the following link Clicke Here[^]Clicke Here[^]
16 Aug 2013 by Sampath Lokuge
Yes you can do.Check below mentioned jQuery Grid demos.This is for web formshttp://www.trirand.net/demoaspnet.aspx[^] This is for MVChttp://www.trirand.net/demoaspnetmvc.aspx[^]Note : you can change theme ,do any CRUD operations and much much more.....I hope this will...
11 Oct 2013 by ASP.NET Community
For one of my applications , I needed to get the all the records,found in AdvancedFind and manage these records. If the record count is less than max
11 Nov 2014 by OriginalGriff
Don't post this under Quick Answers - if you got the original code from an article, then there is a "new message" button at the bottom of that article, which causes an email to be sent to the author. They are then alerted that you wish to speak to them.Posting this here relies on them...
10 Aug 2016 by Richard MacCutchan
See How to: Create User-Resizable Applications with GridSplitter[^].
7 Oct 2016 by Sannyok
Extension of standard pagingtoolbar
23 Mar 2017 by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
Actually you have to store those selection when you click on next page. Use localstorage, cookie or something to store the ids. When you come back to the page, try to select those ids again.
15 Mar 2018 by Richard Deeming
grid-template-columns: max-content auto; Demo[^] grid-template-columns - CSS | MDN[^] A Complete Guide to Grid | CSS-Tricks[^]
10 Oct 2018 by Vincent Maverick Durano
I don't know how xDataGrid was built, but if that control was derived from standard GridView, then you could setup a HeaderTemplate inside your TemplateColumn and add your CheckBox there. For more information,see: TemplateField.HeaderTemplate Property (System.Web.UI.WebControls) | Microsoft...
20 Feb 2024 by OriginalGriff
Create a global variable called lastSurfaceType and initialise it to "road". When you move a player, set the square it is on to lastSurfaceType before you do the move, then set the variable to the type the player is about to move to. That way,...
21 Feb 2024 by merano99
Obviously, according to the source code in movePlayer(), the roads do not play a role in relation to the player, as the player should be able to move through them. It is therefore background. This means that the previous state should be saved and...
26 Jan 2010 by Christian Graus
Gauraav wrote:Hi Mr.Prasad Khandekar,I have facing a problem while using this datagrid.If you're talking to someone who answered you here before, you'd do better to edit your original post, so that people can see the context. If you're responding to an article, then you should use the...
9 Mar 2010 by santosh561
I need to have a Diagram with Rows and Columns (Not uniform, Diagram may contains some Full Columns for Example see below..)|-----|-----|-----|-----|----|-----|| | | | | | || | | | | | || |-----------| | | || | | ...
17 Mar 2010 by Suthagar.p
Sorry i couldnt understand the question... :(
5 May 2010 by 23_444
I'm having trouble with the max position of a horizontal scrollbar. I'm creating a grid and need to set the .page and .max parameters dynamicallybecause user could resize the columns (each column can be resized). And I also don't want scrollbars to show up if scrolling is not...
14 May 2010 by DaveAuld
You have basically written the rules above.You want a matrix of cells, you will need to know what cell you have selected, and then analyze the cells around for valid moves.Nobody will just write code for you, you will need to start yourself and when get stuck on a problem come back and...
20 Aug 2010 by Bhavin Jagad
you may follow thisYou need to keep track of the last column and row displayed..and also keep track of current first column and row.when ever page up is pressed(in VScrollBar) set the current last row as first current row of the grid.similar for the HScrollbarThank you
19 Oct 2010 by avishekrc
Hi,I have the following telerik grid:
20 Oct 2010 by avishekrc
I have done it:protected void btnSaveNetwork_Click(object sender, EventArgs e) { int res = 0; NetworkInformation netin = new NetworkInformation(); netin.ProjectId = ProjectID; netin.UserId = Convert.ToInt32(SessionHelper.UserId); foreach...
20 Nov 2010 by oliverye
A totally beginer in MFC related programmingI am using DataGrid and ADO for the functions below. Is there any member function related to these usages?1.get a certain column, traverse it and save the results to a vector2.get the currently selected row, then get certain field of this row and...
19 Dec 2010 by T2102
You can cheaply buy an ADO .NET recipe book, which will be very helpful.
20 Dec 2010 by novice51
I need help please. I don't know how to add a grid control on my dialog box. Where can I find the grid control?Thanks in advance.
11 Jan 2011 by abi1988
I have a radgrid with GridButtonColumn as one of the column.I need to change that column's text displayed in the grid during ItemCommand event. for eg. if text is 'yes' after ItemCommand event, it should be changed to 'no'. How we can implement this?
6 Mar 2011 by Varun Sareen
Dear Friends,I need to export the form data in labels and also the grid data to excel. It's easy to export the grid data to excel in asp.net but if I want to export the form data as well, I am not able to find such code.Please help.Thanks Varun Sareen
23 Mar 2011 by Member 4156686
Can you help me out how to define Racks and slots of an inventory in wpf where the user selects particular rack to place his equipment via this screen.. The user can view empty slots in one color and filled in different... want an idea how to achive this requirement...
28 Mar 2011 by uandme77
When I sort the grid and click on the image link of the column nothing happens.In short if client template is an image, the link in client template is not working.
28 Mar 2011 by Sandeep Mewara
Did you tried looking here: Telerik MVC Grid Forum[^]I just think, posting such issues about a 3rd party control at telerik Forum would be more useful.Might be someone already discussed it over there! Search before posting.Posting here is fine. Might be someone can help but I had found...
6 Apr 2011 by Pete O'Hanlon
Well, displaying the slots in different colours is a fairly trivial thing to do. Assuming that you simply need to identify empty slots as ones that are null, all you need do is use a value converter to return a different colour, and set the background that way, or use a DataTrigger and set the...
6 Apr 2011 by Abhinav S
You could use two different types of buttons - one for empty and one for filled racks.Style each of them separately and create apply these styles based on the rack type.
9 Jun 2011 by shivanichhabra
Hi,I have WPF grid, in which i have 3 columnsField Name Field Value (cell control type) DataType-----------------------------------------------------------------PeronName Timo (Textbox) stringPersonID 1034 (Textbox) NumericBirth Date 10 Dec 1985(Date with...
9 Jun 2011 by Abhinav S
Use a DataGridTemplateColumn and have all three controls in it.e.g. Pick and choose one of them as you require.
17 Jul 2011 by a9m2i11t
How to Get HyperLink value of Grid View column in a Text Box....
24 Jul 2011 by shd35
is it possible to write a code that takes a database table and show it on a form and the user can drag and drop columns to it that updates the database
24 Jul 2011 by OriginalGriff
Yes.But you would have to code it all yourself - there is no control that does that AFAIK.
12 Aug 2011 by adnama
I have a wpf form in which during the running of the program, I am reloading a grid. (Not a gridview - the ones of wpf) The grid is reloading ok but the old items are shown. When you go back and go in to it again the new items are shown.Is there something similar to this.refresh or...
20 Aug 2011 by Cactus2001
I have added panel to my page. Within which I have added a UltraWebGrid. This UltraWebGrid has 22 columns, so it doesn't fit inside the panel. I added a horizontal scrollbar but it is not working. It is still going out of the panel. I have set the width of the panel(550px) and also that of the...
20 Aug 2011 by thatraja
Try this Infragistics forum thread[^]For your information, use their forum for quick responses because you bought that control & you can have their free supportInfragistics forums[^]Infragistics Knowledge Base[^]
24 Aug 2011 by avi_dadi2002
Hi Everybody, In my grid i've button in every row. When i clicked the button i want to get the row values. Please advice me.Thanks in advance.
24 Aug 2011 by Al Moje
Hi,See this link [Gridview delete button code]Please remember to mark the replies as answers if they help and unmark them if they provide no help.Regards,Algem
2 Jan 2012 by Hamed Metalgear
Hey guys, I have a Canvas inside a grid, the Height and Width of the canvas is set to be Auto.In my code behind, I need to draw a shape (i.e. Line, Rectangle) inside this Canvas and set the size of the shape to the size of Canvas (i.e. a Rectangle which has a Height same as the canvas and a...
17 Jan 2012 by SteveAdey
It depends on where you are trying to find out your canvas height.You could override the OnRenderSizeChanged in the containing view. At this point the canvas has been given a size and ActualHeight with then work correctly.
25 Jan 2012 by Mike Niday
Forgive me as I am fairly new to WPF.I have a small app with a grid at the bottom that extends the width of the window (for navigation buttons) and a grid that fills up the rest of the window, a "client area". I also have separate windows defined in XAML that are basically one grid (the size...
1 Feb 2012 by yenkarthi
Hi, I have some date like rows and columns.I want to display using rowspan and colspan in gridview. How to display rowspan and colspan in ASP.NET gridview..?See sample data as below.Employee name load dynamically created in the Grid control and each employee contains two record per...
1 Feb 2012 by manognya kota
Hi,Check this linkshttp://shawpnendu.blogspot.in/2010/01/merge-merging-or-split-spliting.html[^]http://forums.asp.net/t/1611160.aspx/1[^]Hope this helps.
1 Feb 2012 by Rockstar_
Hi friend,http://wiki.asp.net/page.aspx/815/rowspan-with-gridview/[^]For RowSpan:http://www.kodyaz.com/articles/asp-net-gridview-rowspan-using-rowCreated-event.aspx[^]For ColSpan:http://csharpdotnetfreak.blogspot.com/2009/07/merge-gridview-cells-columns-aspnet.html[^]
13 Feb 2012 by M_Mogharrabi
Hi everybody,I have a UltraWinGrid in my form that the user allowed to change the sequence of columns of it.also i have a button in my form that it should send the DataSource of this Grid as a DataTable to a class that generates report.I have used following code to cast the DataSource to...
13 Mar 2012 by NarutoBoyGG
.Filterable(...
7 May 2012 by Member 8780234
:-) I fixed it.Actually it was my mistake.Because I forgot to add javascript links
8 May 2012 by Mayank Topiwala
Hi AliYou have to set DataGridView's EditMode property to EditProgramatically.Let me know if it doesn't solve your problem.
8 May 2012 by Reegan Durai.m
hello ali you have select gridview select datagridview task to check enable editing.
14 May 2012 by Elan.Cao
Such as get the object sure in Row one and Colum one.
20 May 2012 by hishaks
In my WPF app, I have a main window containing a grid. I have a Login and a Shell User Control which are set as the Grid Children. I want to start a timer in the main wondow on addition of the Shell, i.e. when the user logs in. I need to know as to what even is raised when a child is added...
20 May 2012 by Wendelius
You could possibly override Grid.OnVisualChildrenChanged[^] and run the necessary code in there.Just remember to call the base method also!
9 Jun 2012 by Barry Lay
I am quite new to WPF, and am struggling with accomplishing a visual effect - I would like to have a two-dimensional grid of objects with a data-driven number of columns. I am trying to go with MVVM with zero code-behind.I have the following structure:
10 Jun 2012 by Barry Lay
If code behind becomes necessary, so be it. I would just like to avoid wiring the UI elements to the business logic - that way lies maintenance trouble. I would think that the answer to my problem is a basic missing component or setting.
12 Jun 2012 by Member 8226665
Hey Friends i am using gridview thorugh datatabase with if condition and i want if no data row is retrive then if condition is false so friend what i use for this .......[edit]SHOUTING removed - OriginalGriff[/edit]
12 Jun 2012 by Emzari
You must explain what exactly you need. Information provided by you is not enough to help you.
16 Sep 2012 by Jesse Chisholm
Here is an external link to an article that talks about fixing the first N columns[^].It does happen to use a DataGridView in the Grid, which you said you didn't really want to use, though you didn't say why you didn't.This external article uses xamGrid by Infragistics[^] for the same...
8 Nov 2012 by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
Check the below articles and try to implement the techniques.They will help you for sure.1. how to show the up and down arrows during sorting of column in gridview using asp.net[^].2. A Look at the GridView's New Sorting Styles in ASP.NET 4.0[^].Thanks...
19 Nov 2012 by asp.net4.50
newly added row need to contain some column values of the row where we clicked add button
19 Nov 2012 by __TR__
Not sure if i understood your question correctly. If you are looking to insert data into gridview you can check the below articlesGridView with insert line[^]Editable GridView in ASP.NET 2.0[^]Extended GridView with Insert Functionality[^]Insert, Update, Delete with Gridview ... Simple...
22 Nov 2012 by asp.net4.50
i want to insert a new row after editting the row in grid view ,. that is instead of updating record after editing , just i want to insert a new record in table
22 Nov 2012 by __TR__
This article might be helpfulInsert, Update, Delete with Gridview ... Simple Way[^]
27 Nov 2012 by HCIMS DEVELOPER
How to add anchor tag with an onclick function to an sjg:gridwhen i used like this its working groupText="['Detail for order number : {0} which contains {1} item(s)']"but I need anchor tag with onclick="addData({0},{1})" , after the item(s){0} is a string
8 Jan 2013 by ShaikhM
I am new to Sencha. In one of my projects I have to use a Multiselect Grid Panel and update the store to and from the Grid. I have no clue as to how to achieve this. I will highly appreciate if someone can send me their sample code or even links that display the usage of Multiselect grids. I...
18 Jan 2013 by frecaco78
I have a grid base on Telerik MVC extensions using batch edit, but I don't know how create the Repository base on a table of my database instead of the class used in the example named EditableProduct. There are the example based on EditableProduct from Telerik Demos...
27 Jan 2013 by Hetal Jariwala
HiWe want to sort the grid view with other columns other than group by which will sort the group by rows first and then the detail level rows. Currently the default sorting will sort the group by column and then sorts the other columns with in the group by columns.For, eg.. Our resultset...
28 Jan 2013 by Rob Philpott
I'd suggest you do this if possible sql side. The reason being why return more data from SQL Server just to filter it out later on? It's just more network traffic and memory which is just going to get thrown away.
5 Feb 2013 by Prabaharan T
hi,how to expand or collapse Columns in a Grid in ASP .Net. I got lot of articles and demo regarding rows but not columns. Please help me.
26 Feb 2013 by Am Gayathri
I want to create columns in grid dynamically in my project, The grid should display search result.In search criteria am passing some IDs.If i pass 12 ids it should generate 12 coloumns if i pass 10 it should generate 10 columnsHow can i do this?Share your logic.