Sketchflow - grid datatemplate - grid

I am trying to do something very simple with Sketchflow.
Create a grid with data. I tried using a listbox, created a datasource, bound the datasource to the listbox...everything works fine....but am stuck when it comes to trying to customize how the data is laid out....i.e., i want to create a data-template for the listbox, and then bind data to it.
any help on this would be highly appreciated.
thanks in advance,
Sashidhar Kokku

Although you can do what you are suggesting, I suspect what you want to use is DataGrid.
For Silverlight you can find the DataGrid in the Silverlight Toolkit: http://www.codeplex.com/Silverlight
For WPF you can find the DataGrid in the WPF Toolkit: http://www.codeplex.com/wpf

Related

In Which situation we should use repeater control or Grid View Control in asp.net

I manage a project and as you know asp.net has many types of data control, I am confused which control should be used in what condition. Which is better control in what situation. Should I still use repeater control because grid view is advance control.
A repeater allows you to have your items repeated both horizontally and vertically unlike a GridView which only by default repeat the items vertically.
The best way to understand the two is if you need a simple grid displayed use a gridview.
If you need to do additional formatting or display data from the database with additional graphics, labels, not in a grid type form than use a repeater. You can easily adjust the repeater to by as dynamic as you need it to be where as a grid view is a simple grid.
With a repeater you will click on the page SOURCE of the .Cs or .vb file and you will see 4 templates. Anything HTML you put in those templates will repeat with the data.
Around 2010 I ran into so much trouble with the GridView, I asked a (now former) Microsoft evangelist for advice. He strongly recommended not to use the GridView ever. Then I stopped and life got easier.

asp.net formview inside gridview row

I need a gridview such that when I click on a row to edit it, the data shows in a formview within that row. The user can then make updates within the formview. I am not able to find a suitable example that can do something like this. Can somebody please point me to an appropriate example that does this.
Note that I am using ASP.NET.
Thank you.
Here is an example from Kendo , You can download and use their tools for free with limited support.
Kendo Inline Editing Grid for ASP.Net

ASP.NET DataGrid, DevExpress Grid or Report

I am new to asp.net and I want to create a table on my site.
The table should display data in a year-by-year manner (every row is another year).
When a row is clicked data in the table should change to the month-by-month data and so on.
I do not wnat to have another table under the first one or open new site.
i want to change columns and data binding in the table that is loaded as the first one.
I was wondering if it can be done using DataGrid or maybe I should think about some DevExpress
controls? I heard they are cool stuff :)
Oh, and one more thing - I want to generate report to pdf from data that is currently being shown.
Any suggestions how to do it? Like I said I am new in asp.net.
Thanks in advance for help.
surely you can use DevExpress ASPxGridView or even the MVC Grid extensions, both have no code required pdf/excel/HTML export. as you said, cool stuff, we just bought 14 licenses of their DXperience subscription, planning to use mostly the MVC and SL controls.
I don't know anything about DevExpress but I know what you are describing can be accomplished using a plain old ASP.NET GridView. The DataGrid is actually a somewhat deprecated control, so you wouldn't typically use that with a newer ASP.NET application.

ASP.NET drag and drop between 2 listboxes

I have two listboxes on my webpage each containing values of a database.
I want to drag one item from listbox1 to listbox2, and then the program should save the new values of listbox2 in the database.
I have no idea how to do that... any help is welcome!
How should I start? I'd like to do it using jQuery...
maybe with using the jQuery UI Droppable plugin?
Has anybody a decent tutorial is how to do this?
Thanks in advance!
You could use Telerik's controls for ASP.NET MVC.
They have a treeview control with built-in support for drag and drop. If you want a flat list, don't introduce any children for the treeview. A demo can be found here:
http://demos.telerik.com/aspnet-mvc/treeview/draganddrop
They use jQuery behind the scenes.
If you want to create it yourself, please check out the following video by Chris Pels:
http://msdn.microsoft.com/en-us/scriptjunkie/ff698290
He explains how to build drag & drop functionality using the jQuery and jQueryUI libraries. This should get you started.

Data Web Controls

In a repeater control can we achive both sorting and grouping together, If possiple plz guide me the way.
If not, what is the best control to obtain just sorting and grouping.
Thank You
There is no built-in data control with grouping and sorting which works out of the box in .net framework. You need to implement sorting and grouping by yourself. As implemented solutions you can look at devexpress gridview or jquery grid plugin.
If you want to implement sorting in repeater control - look at this.

Resources