Hi all,
I have a link in a Gridview that I want opened in Windows Explorer (or explorer.exe).
<asp:GridView ID="GridView1"runat="server" >
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:LinkButton ID="DeploymentLocation" runat="server" CommandName="OpenLink"
Text='<%# Eval("Dep...
I would like to display students and their grades with a GridView and LinqToSQL like this:
assignment1 assignment2
Student 1 55 89
Student 2 87 56
Student 3 92 ...
<asp:GridView ID="GridView3" runat="server" Width="100%"
DataSourceID="SDS"AllowPaging="True"
AutoGenerateColumns="False"
>
<Columns>
<asp:BoundField DataField="Hint"
HeaderText="text"SortExpression="Hint"
/>
<asp:BoundField DataField="Visi"
HeaderText="bool val"
SortExpress...
I want to set a parameter for a SqlDataSource programmatically as described in Step 5 at http://www.asp.net/data-access/tutorials/using-parameterized-queries-with-the-sqldatasource-vb . Also a GridView is bound to the sqlDataSource. My markup is:
<asp:SqlDataSource ID="mySqlDataSource" runat="server"
ConnectionString="<%$ Connectio...
Hi
I ran into a strange issue. I am able to put gridview inside asp:panel and scrolling works too. But the moment I down, the header of gridView scrolls above inside the panel and gets hidden.
I just want to scroll rows, not the header. How can I do that? Please advise. Following is what I am using.
On a side note, I have tried to wra...
I've created a objectadasource that returns a datatable, the gridview
is binded to this datasource.
the ODS have parameters assigned on the Page_Load event, and the ODS returns the data ok and the gridview shows it fine.
the problem is
i have a textbox with a filter.
first I created a filterexpression in gridview, using the contents...
I have Data.xml:
<?xml version="1.0" encoding="utf-8" ?>
<data>
<album>
<slide title="Autum Leaves"
description="Leaves from the fall of 1986"
source="images/Autumn Leaves.jpg"
thumbnail="images/Autumn Leaves_thumb.jpg" />
<slide title="Creek"
description="Creek in Alaska"
source="images/C...
I've used an early binding of a dictionary<string, string> to a gridview to show Urls Text and its HRef as key-value and it works like a charm.
But since I want to replace the dictionary with this one :
dictionary<string, LinkInfo>
the binding goes wrong! Should I handle some events like as onItemDataBound or something?
and the LinkI...
I have an XML file called employee. I want to bind the XML file to a GridView. pls help... thanx :-)
...
I've got a nullable column in SQL Server 2008 that I use to store a time. When I use LINQ to SQL and pull data back it comes back as TimeSpan?. When I bind that to a GridView and try to format it using DataFormatString="{0:t}" it still shows the seconds. Any thoughts?
...
i have a record of a gridviewrowcollection. and i'm having issues with adding them to the grid.
GridViewRowCollection dr = new GridViewRowCollection(list);
StatisticsGrid.DataSource = dr;
doesnt work.
StatisticsGrid.Rows
does have an add method, what is strange
how can i add a gridviewrowcollection without creating a datatable + b...
I currently have a GridView scrolling vertically, and everything works fine. But now that I want to change my layout and have the gridview grow on its width instead of height as it grows bigger I am lost.
I have tried to simply change the column width each time an item is added to the gridview. But no vertical scroll appears, even thoug...
Hi, I am working in ASP .net 2.0. I am a learner. I have a grid view which has a button in it. Please find the asp mark up below
<form id="form1" runat="server">
<div>
<asp:GridView ID="myGridView" runat="server">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:Button Command...
I have a bool field in a cell of a datagrid. What I want to do is to color the row with red for true and green for false.
How can I do this with the C# Datagrid?
...
Hi at all!
I have to create a form to insert curriculum infomration fields.
I have many fields groped by different sections but only 1 record for all sections.
Insering field I have to navigate to all section (pages) and in the last page(section) I perform the insert button.
How is it possible ?
Thanks
Antonio
...
Hello,
i have a GridView bound to a DataView.
Some columns in the DataView's table are foreignkeys to related tables(f.e. Customer). I want to enable sorting for these columns too, but all i can do is sorting the foreignkey(fiCustomer) and not the CustomerName.
I have tried this without success(" Cannot find column ERP_Customer.Custo...
I currently have a GridView inside a ListView.View. The GridView columns will far exceed the width of the screen, so there will always be horizontal scrolling.
What I would like to do is to have certain columns always remain on the screen regardless of scrolling. So the first x columns from the left are frozen (ala Excel), and the res...
I am struggling to show different views of gridview with database values. Here is my requirement.
Database Table:
I need to show one drop downlist with three values 1,2,3. If user selects 3 i Need to show a grid like below
Age,AnnualSales and Assortment are names which are coming dynamically from database.
High,Medium and Core ...
I am using a gridview in asp.net with the left column being checkboxes. How can I tell which rows have a checkbox "checked" upon button submit?
...
I am using checkboxs in a GridView. I need to determine the value in the cell in the 2nd column, if a checkbox has been checked.
I am using C# 2008 and ASP.net
<asp:GridView ID="gvOrders" runat="server" AutoGenerateColumns="False" CellPadding="4" GridLines="None" Width="100%" AllowPaging="True" PageSize="20"
...