Groups | Blog | Home


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
May 2008
June 2008


all groups > asp.net datagrid control > april 2005 > threads for april 8 - 14, 2005

Filter by week: 1 2 3 4 5

Edit multiple rows of a datagrid (ASP 1.1)
Posted by postings NO[at]SPAM alexshirley.com at 4/14/2005 6:36:36 AM
Hi Silly question here I guess..... I know I can use an EditCommandColumn to edit a particular row in a datagrid: -------------------------------- Private Sub DataGrid_Edit(ByVal source As System.Object,ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles DataGrid.Edit...more >>

Problems with paging.
Posted by lgrottland NO[at]SPAM yahoo.com at 4/13/2005 6:08:45 AM
Hello! I have this strange thing happening here. I'm unavailable to use paging in my grid? I set the AllowPaging to True, and I placed a code into the PageIndexChanged. When I set a breakpoint into the PageIndexChanged it doesn't go there at all. Can anyone give me any idea of how to get...more >>

asp.net 2.0 GridView adding data row?
Posted by merrittr NO[at]SPAM gmail.com at 4/12/2005 11:26:01 PM
I have a 2.0 GridView <asp:GridView Runat="server" ID="GridView1" DataSourceID="AccessDataSource3" BackColor="Gainsboro" BorderColor="#336666" BorderWidth="3px" BorderStyle="Double" CellPadding="4" GridLines="Horizontal" AllowSorting="True" AutoGenerateEditButton="true" DataKeyNames="Universi...more >>

Can I change the mousepointer while hovering over datagrid?
Posted by jef at 4/11/2005 7:44:35 PM
When the mousepointer is hovering over the text area of the grid, it switches to the "I-bar"... I would like it to remain the standard pointer... is there a way to do that? ...more >>

Retrieving SelectedValue from DropDownList
Posted by AlBruAn at 4/11/2005 2:21:02 PM
I have a few DropDownList controls used for new record entry in the footer of a datagrid and I want to limit the options available in one list based on what is selected in a previous list; I've seen examples of this where the DropDownLists are used in edit mode, but none for data entry mode. ...more >>

Export to Excel shows an empty sheet
Posted by Paul D. Fox at 4/11/2005 9:21:57 AM
When I run my Export to Excel, the Spreadheet is empty. Anyone know = what may cause this? Here is my code: Response.Clear() Response.Charset =3D "" Response.ContentType =3D "application/vnd.ms-excel" Response.AppendHeader("Content-Disposition", "attachment;filename=3D" & = strFileName & "....more >>

Create TemplateColumn on datagrid exclusively with code behind
Posted by ricardo.ferreira NO[at]SPAM bentley.co.uk at 4/11/2005 4:36:53 AM
Hi, How can I insert a TemplateColumn on a Datagrid on the fly? Basically I'm after how to create a TemplateColumn, add a button and a label to its control list and add the TemplateColumn to my Datagrid. Something like: Dim tc as New TemplateColumn tc.Controls.Add(New Button) tc...more >>

Sorting on a DataField (not KeyField)
Posted by bernardpace NO[at]SPAM yahoo.com at 4/11/2005 1:37:54 AM
Hi, I am using a datagrid, with two columns(ID is the keyfield). Now data in the grid is being sorted by this ID. How can I sort data on the Name DataField. <Columns> <asp:BoundColumn DataField="ID" HeaderText="ID"></asp:BoundColumn> <asp:BoundColumn DataField="Name" HeaderText="Name"></a...more >>



Find Control in Datagrid
Posted by jack-b NO[at]SPAM humlog.com at 4/10/2005 10:18:01 PM
Hi, I have a datagrid and I'm wanting to access one of the hyperlinks which is located in Template Column i.e. <asp:TemplateColumn HeaderText="Action"> <HeaderStyle Width="100px"></HeaderStyle> <ItemTemplate> <asp:hyperlink ID="DeleteHyperlink" runat="server" NavigateUrl="m...more >>

Need to change image of imagebutton in datagrid template column
Posted by jef at 4/8/2005 10:01:14 PM
I'm going nuts.. I've got a template column with an imagebutton in it. I would like to change the image on the button when the button is clicked. However, in the _ItemCommand() function I can't seem to figure out how to get a reference to the imagebutton object. Help anyone? ...more >>

Export to excel leaves off leading 0s
Posted by Dave Bailey via DotNetMonster.com at 4/8/2005 5:16:24 PM
When I export a datagrid to excel the leading 0s of the first column are truncated. I am using the following code for the export: private void ExportToExcel() { Response.Clear(); Response.Buffer = true; Response.ContentType = "application/vnd.ms-excel"; Response.Charset = "";...more >>

ds and Session
Posted by anonymous at 4/8/2005 12:21:10 PM
Why when I am adding a row to a local ds my session rows.count increses? What is incorrect in this code? Dim ds As DataSet Dim dt As DataTable ds = Session(pageName) dt = ds.Tables(pageName) Dim dr As DataRow dr = dt.NewRow dr("NameLast") = "" dr("NameFirst") = "" dr("NameMiddle"...more >>


DevelopmentNow Blog