Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
all groups > asp.net datagrid control > july 2006

Filter by week: 1 2 3 4 5

textbox text missing after detailsview postback?
Posted by News User at 7/31/2006 10:58:22 AM
I have a imagebutton in a detailsview, which, when clicked, causes postback and show or hide some of the rows. (Me.DetailsView1.Fields(4).Visible = true or false) That's all it does. In the same detailsview I have other controls : dropdownlist, checkbox and textboxes etc., all of them are b...more >>


Datagrid table display method
Posted by csgraham74 NO[at]SPAM gmail.com at 7/30/2006 5:21:51 AM
Hi guys, Just wondering if someone could help me. I have a datagrid that displays client data A & B. If client data A is displayed then i display an image and some data in the table in my grid. If client data b is displayed the image is not displayed and i display slightly different data...more >>

GridView date format problem
Posted by Bob Phillips at 7/27/2006 12:56:19 PM
Hello All: I have a GridView in a user control that has its datasource assigned dynamically. It's working well, however, date values are displaying mm/dd/yyyy hh:mm:ss and I only want a short date format. I don't know which column will hold a date prior to runtime. Is there any way to set it...more >>

Static DataGrid - Dynamic Column Order - Sorting Issue
Posted by Dan at 7/26/2006 2:21:52 PM
I have a datagrid with 11 columns defined in the aspx page. When I load the page, I bind the grid normally and then pull the users customized settings from the database. I pull off all of the original columns from the datagrid and store in a collection. Next, I clear the columns from the datag...more >>

Sortable column on DataGrid -- column header not displaying
Posted by Teej at 7/26/2006 12:18:54 PM
Good afternoon, General goal: I am working on a Web application (C#) in which the first screen is simple enough: it displays a DataGrid based on data from a SQL Server database. One of the columns in the db is a DateTime column, which of course has the date and time displayed in each record....more >>

ItemDataBound fires for header only
Posted by bkasmai NO[at]SPAM gmail.com at 7/23/2006 1:04:07 AM
This is driving me crazy. I need to hide rows that a particular cell is zero. On debuggng I fiound out that ItemDataBound fires for header only and not for Item and AlternatingItem private void grdSelectionList_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e) { ...more >>

Help on DataSets
Posted by cagriandac NO[at]SPAM gmail.com at 7/22/2006 1:04:58 PM
Hello, I am creating an application using asp.net 2.0. But I am stuck somewhere. I want to get values from a DataSet one by one on every Page_Load. So I wrote my code in Page_Load but it didnt work, giving a warning. Here is my code: [code] Protected Sub Page_Load(ByVal sender As Objec...more >>

How to enable and disable a single row in a datagrid?
Posted by ashan at 7/21/2006 8:42:02 PM
Is there's a way to do this? I want to have control over the enabling/disabling of a single row... Any help will be appreciated... ...more >>



want to make column in DataGrid a Hyperlink
Posted by Henry Jones at 7/21/2006 4:57:28 PM
I am new to ASP.NET and I'm using Visual Studio 2003. I put a datagrid on a form and bound to the Northwind/Orders table. The first column is the ID field. How can I make the ID field display as a hyperlink on the grid when the web form is displayed? Thanks ...more >>

FINDCONTROL PROBLEM
Posted by Savas Ates at 7/21/2006 4:54:39 PM
It is in my <EditItemTemplate> Tag.. <asp:DropDownList Runat=server ID="CIdeefixeSatis" SelectedIndex='<%# SelectMyIndex(DataBinder.Eval(Container, "DataItem.ideefixesatis")) %>' > <asp:ListItem Value="True">Stokta Var</asp:ListItem> <asp:ListItem Value="False">Stokta Yok</asp:ListI...more >>

Percentage width for cells in web Datagrid
Posted by Elizabeth at 7/19/2006 4:10:22 PM
Hello: I was migrating a web application from VS2003 to VS2005. In one page I had a grid with some cells with fixed width in pixels and two cells with width in percentage (65% and 35% respectively). In these cells with percentage I use user controls (dropdown extended). So in my old appl...more >>

Datagrid PageIndexChanged event doesn't fire
Posted by vcinquini NO[at]SPAM gmail.com at 7/16/2006 8:03:34 AM
I already did this in the past succesfully. I can't understand why it isn' t working now. Anyone can see anything wrong? The ASPX page <%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="datagrid.WebForm1" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 T...more >>

DataGrid with Multiple DropdownList's - need to Populate dynamical
Posted by PK9 at 7/16/2006 2:11:01 AM
Need help with a DataGrid DropDownList problem. I have a datagrid that contains several columns, including two ItemTemplate columns that have DropDownList controls. The DropDownList controls are in columns titled "Short Title" and "Editions". When a user makes a selection from one of the ...more >>

How generate the data from a GridView to a text file?
Posted by Carlos at 7/13/2006 7:42:00 PM
Hello all I have infromation that change every time, I created a button to export this data to a text file. It's possible? There is a command or a script or another solution? Thanks in advanced. C. ...more >>

filter
Posted by Jules at 7/13/2006 3:58:59 PM
i need to filter my data (by field) before loading my datagrid programmatically any idea? thx ...more >>

How to get active row??
Posted by JLuv at 7/13/2006 9:12:13 AM
I have a TemplateColumn in my DataGrid that consists of links. When the links are clicked a javascript calendar is opened that returns a selected date to a HiddenField. What I'm trying to do is take the row in which the calendar was chosen and change the date inside of the datagrid. (if that mak...more >>

edit update and canel buttons not firing correct event handlers
Posted by lauralucas NO[at]SPAM gmail.com at 7/12/2006 12:27:00 PM
Hello I use a datagrid with databound columns and a "Edit, Update, Cancel" button column. I tried this with column created in design time: When I click the Edit button, it correctly fires the Edit event which calls my EditGrid method and puts me in edit mode. So far, so good. But, when I click ...more >>

adding a row to the grid view
Posted by Etariq at 7/11/2006 4:22:38 PM
is there a way for adding a row before the header row so it can be used as another header , ...more >>

how to change labelvalue when deleting row in gridview?
Posted by Cas at 7/10/2006 4:26:07 PM
Hello, My gridview has the option ShowDeleteButton="True". There is also a label which renders the amounts of records. What i'm trying tot do is: when i delete a row, the amount of records must be adapted in function of the value of a field. If the value of the field="black" then it must b...more >>

Edit/Update/Cancel Problem
Posted by mschmidt18 NO[at]SPAM gmail.com at 7/10/2006 9:56:39 AM
Hello, I have a datagrid (.net 1.1) with an edit/update/cancel column. I am having trouble capturing the data when the update event fires. It is getting whatever was in the textbox before it was changed. Here is some of my code: c# System.Web.UI.WebControls.TextBox p_productDesc = new ...more >>

How to generate readonly attribute correctly?
Posted by Hamed at 7/9/2006 10:41:26 AM
Hello I have a DataGrid object in my ASP.NET page that has the following template column. When I put the "readonly" attribute in the INPUT tag, it generates readonly="". <asp:TemplateColumn HeaderText="Kg Price" HeaderStyle-Width="5%"> <ItemTemplate><INPUT class="ep" id=kf readOnly value...more >>

GridView - FormView Problem
Posted by Giorgio Parmeggiani at 7/8/2006 11:28:06 AM
Hi I have a GridView and a FormView connected among them through a relationship master/detail The FormView has an ObjectDataSource with a ControlParameter connected to the SelectedValue of the Grid: <asp:ControlParameter ControlID="gridRichieste" Name="id" PropertyName="Sele...more >>

error: Specified argument was out of the range of valid values. Parameter name: index
Posted by Dave at 7/7/2006 3:09:17 PM
Hi, I want to change the color of two fields (a checkbox and a 'normal stringfield') of my gridview depending of their value. The checkbox works with the code below. My question is: what do i have to take as object for the 'normal stringfield'? I tried with 'textbox', with 'label' ... but eac...more >>

Getting the value in a cell in a DataGridView
Posted by Greg Smith at 7/5/2006 1:19:32 PM
I would like to capture the value in a specific cell in the current row on a double-click event on a DataGridView. I can't seem to figure out the syntax. Any help is greatly appreciated. ...more >>

Gridview Textfield
Posted by Sebastian Terodde at 7/4/2006 4:55:33 PM
Hi NG, I have made my first steps in ASP.net. I used a gridview control, bound it to a Datasource ... everything is fine. But I have a textfield in the Database. It contains a description of something. So it has sometimes many Text. Problem is, that I did not found any possibility to make a ...more >>

Any way to reorder how a datagrid is drawn (header/footer/items vs. header/items/footer)?
Posted by Henrik at 7/3/2006 1:41:03 PM
Is there any way to reorder how a datagrid is drawn. I have a situation where it is preferred to have the footer show up before the already existing data rows. My footer is being used for adding new rows. Current/default ordering: Header Item1 Item2 Item3 Footer Desired ordering: ...more >>

Datagrid sort date column as string
Posted by mkhmer at 7/3/2006 12:00:00 AM
Hi, Anyone know how to handle date column sort in grid? it seem to be sorted as string now that result below is shown: 1/1/2006 1/2/1980 2/4/1981 I did formate the column field using "{00:mm/dd/yyyy}" and original field in table is also a date type too. Appreciate your kindly help ...more >>


DevelopmentNow Blog