gridview

Replicate Webforms GridView in ASP.NET MVC

Is there a realistic way to implement a webforms stylegridview in ASP.NET MVC, with inline editing? I have found various solutions to get a grid with inline editing working in MVC using JQuery add-ins but so far they have been very messy, require an unrealistic amount of work and that all gets worse when you want to add client and serve...

Refer to Footer value in GridView created dynamically ASP VB

I have a Gridview that I create a dynamic footer wired up to the RowDataBound event. However there is a 50/50 chance that 3 of the columns will have no data. I want to be able to dynamically hide the columns with no data if possible. I have tried doing this in the RowDatabound event by checking if the value is = 0 but that does not wo...

How do I set the a specific row or cell in a gridview (vb 2008)

I know this will be easy, but I can't seem to find it anywhere. How do you SET the current row in a gridview? I find tons of ways to get data from it, but I what to set a current row or cell programatically. I'm using VB 2008 express. I also find lots of promising properties like Selected... but these are all read only and i can't se...

When are the auto-generated columns in a gridview added?

I'd like to tinker with the auto-generated columns in a gridview a bit. What event would I want to override to modify them just after they are generated but before the control is rendered? ...

how can I reorder the columns in GridView and Rename the column?

when I dispaly the rows from DB using GridView, the columns appear without order. like: Class Course Name ID and I want to display them by order. like: ID Name Class Course how can I do that ? this is thr first piont the second point is how can I RENAME the column ? thanks, ...

Gridview and viewed items

I have a gridview (DXperience gridview) where I would like to display if the user has already clicked on a link in that row. The link on each row sends the user to a page where more detail is shown about the item. To symbolize this I have thought of e.g. making the background of the visited rows in a different colour. My question is wh...

sum column values and display in footer in C#

Hi, I've the following code which is used to display ItemID, Name, and Price via SQLDATASOURCE. How is it possible to get the SUM of the values in the Price column and display it in the footer? <asp:GridView ID="GridView2" runat="server" ShowFooter="true" AutoGenerateColumns="False" DataKeyNames="ItemID" DataSourceID="SqlDataSource...

checkboxlist column gridview

I have gridview I have column that should be checkboxlist like dropdownlist column but how can I let the list appear when click in the column ?I don't want the list to appear unless the user want to check some items thanks alot ...

Error: Both DataSource and DataSourceID are defined on 'GridView2'. Remove one definition. ?!

when I write this query (using LINQ): Dim hw22 = From hw In db.HWs _ Select hw then: GridView2.DataSource = hw22 GridView2.DataBind() this error occurs: http://www.rofof.com/img2/6hscmu7.gif How can I solve this? ...

Banded grid view in XHTML Strict + CSS

I'm trying to create a simple banded grid view in XHTML Strict with CSS. For an example see this picture of a devExpress GridView. The main issue is how to create a table where each entry consists of multiple rows. Of course, something like <table> <tr><td> <table> <tr> <td width=100>Item 1, cell 1</td> <td width=200>Ite...

Gridview RowUpdating event not firing

I have a Gridview with AutoGenerateColumns="False". I am using a TemplateField to display my Edit, Update and Cancel 'buttons' in the first column of the GridView within respective ItemTemplate and EditItemTemplate fields. Within the ItemTemplate I have an ImageButtong with a CommandName of "Edit". This works as expected and I can put a...

how to set datasource to dropdownlist

hi all i want to add a datasource to dropdownlist this dropdownlist is one of the column of gridview here i want to add a datasource to dropdownlist at dynamically without using the sqldatasource (vs2008 and c#) ...

Binding Gridview to IList<BusinessObject> that contains an IList<BusinessObject>

I'm having trouble figuring out how to bind a custom IList to a gridview. The IList contains another custom IList. I need to bind a property from this IList to the gridview. public class Seminar : BusinessObject { private string _description = String.Empty; private List<User> _attendees; public string Description {get {retu...

Gridview Paging with JQuery

Is it possible to handle a gridview's OnPageChanging event with JQuery? ...

ASP.NET gridview binding doesn't work / control doesn't show up

Hey there, another beginner problem. Why isn't the following code with an asp.net page not working? protected void Page_Load(object sender, EventArgs e) { List<string> list = new List<string>(); list.Add("Teststring"); this.GridView.DataSource = list; } GridView is the GridView control on that asp page. However, no grid ...

TreeView in GridView

Hi, I know there must be a way to do this, and perhaps someone has already done it. I googled like crazy but found nothing at all. Anyway, what I want to do is have a TreeView in the first column of a GridView using WPF, which can expand and collapse and that will show/hide the row it belongs to, pretty much something like this (the demo...

Exporting Gridview to Excel in web app

Hopefully you guys can help me out. I tried a lot of different things and cant get this working. I have a gridview as below in a update panel: <asp:UpdatePanel ID="udpReport" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true"> <ContentTemplate> <asp:GridView runat="server" ID="preferenceReport...

How to show headings in GridView with no results

What is the best way to still show column headings on a GridView that doesn't get any records when using LINQDataSource? ...

Getting a selected value from the drop down list inside a GridView on Update

I have a GridView, each row has Edit button. After it's clicked, one of the columns turns into a drop down list where users can select value. Edit button becomes Update - so very simple usual scenario. Now, I don't seem to be able to grab the selected drop down list after Update is clicked. Here is my code: protected void gv_Update...

Need an easy WinAPI grid in C

I am looking for a grid control that can be controlled via WinAPI messages. I have tried the BabyGrid from CodeGuru but it is very slow when it comes to displaying on large screen. Anyone know of a good one? ...