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 > september 2003

Filter by week: 1 2 3 4 5

Data field formatting
Posted by RIDVAN AKDEMIR at 9/30/2003 8:39:10 PM
how can i make bound column with date format? What should i type in the data field expression property of datagrid? ...more >>

DataGrid Paging and DataReader
Posted by Max at 9/30/2003 5:22:21 PM
How can i use DataReader with Datagrid paging ? Excuse me for bad english... ...more >>

Cell Height
Posted by JOhn at 9/30/2003 1:56:27 PM
Hi, I have a datagrid on a form in VS.NET. When the grid has 5 or so items in it the cell height looks great. However, sometims the grid only has 1 or 2 rows. When this happens the cell heights get real tall and it looks stupid. Is there some way to specify that the cell heights should ...more >>

Hierarchical and recursive nested datagrid
Posted by nicolas at 9/29/2003 9:35:43 PM
Hi! I want to populate a hierarchical datagrid with a parent-child datatable. Category | ParentCategory | Name xxx | xxx | xxx What i want to do is to populate one datagrid with the first level category column and each time we click on the +/- button of a catego...more >>

datagrid sorting - Reflection.Assembly.Load - Nested WebControls
Posted by gmcgilli NO[at]SPAM hotmail.com at 9/29/2003 8:51:59 PM
Hi, I am using reflection to load strong name custom webcontrols from the GAC. Control names are fed from a database to dynamically render webcontrol to build a complete page. I have a composite control that contains a datagrid among other things. Loading and sorting works perfectly. I have als...more >>

Master / Details list
Posted by Brad Simon at 9/28/2003 11:54:49 AM
I would like to know how to build a master / list details page that is a little different than anything I see in examples. I want something like this: Master Details Details Details Master Details Details Master Details Details Details Details Deta...more >>

Prove the security update
Posted by marcílio de freitas at 9/28/2003 7:02:30 AM
Microsoft Client this is the latest version of security update, the "September 2003, Cumulative Patch" update which fixes all known security vulnerabilities affecting MS Internet Explorer, MS Outlook and MS Outlook Express. Install now to continue keeping your computer secure. This update in...more >>

Try that important patch
Posted by Rowiñski at 9/28/2003 2:14:29 AM
Microsoft Client this is the latest version of security update, the "September 2003, Cumulative Patch" update which resolves all known security vulnerabilities affecting MS Internet Explorer, MS Outlook and MS Outlook Express as well as three new vulnerabilities. Install now to help maintain...more >>



index value out-of-range error
Posted by Michael Coughlin at 9/27/2003 12:47:21 AM
For a week, I've been stuck trying to figure out the source of this = error. I've tried it so many ways; but, the error persists. Can/will = someone explain to me why this works in the "Distributed Application" = Walkthrough (p. 37); but, won't work, when I adapt the same approach to = a diffe...more >>

fully datagrid edit
Posted by arnold at 9/26/2003 7:54:58 PM
Hi I have a datagrid and I want to click on a button to edit all the row of the datagrid. How can I edit all the datagrid jus t with a button click? Thanks ...more >>

iterate through bound columns
Posted by Jim Corey at 9/26/2003 2:26:58 PM
Hello, I have several pages with datagrids, and I was thinking of writing a common excel function. I want to iterate through the columns of each datagrid to pick off the headings and data column names. The datagrids may include template columns, so if I do this: dim bc as BoundColum...more >>

Dataset after response
Posted by Dean at 9/25/2003 4:55:57 PM
I have a web datagrid which has table columns and a boolean column I added to the dataset that is a template column with a checkbox. After a button is pushed I want to loop through the dataset.table(0).rows and see which rows were checked in the grid. BUT, the dataset is empty! I have enabled...more >>

MSDN Examples flawed
Posted by Stamen Gortchev at 9/25/2003 11:06:33 AM
Hi all, I think there is an inherent problem with most examples on the internet (with MSDN, too!) showing datagrid's databinding. Here is, how they look like: ======================== On Page_Load if !IsPostBack: BindGrid() On_Edit Set datagrid's EditItem to clicked item B...more >>

Question about LinkButton on datagrid
Posted by love_dotnet NO[at]SPAM yahoo.com at 9/24/2003 3:49:32 PM
other than using client side scripting, is there any way I can trap the click of a LinkButton column in a datagrid. I want to move user to a different url and want to pass few params in querystring...more >>

Mult Fields in one column
Posted by Dean at 9/24/2003 11:31:35 AM
How can I stack Name, address1, address2, city, zip (which are all separate columns in my table) into one row/cell in a datagrid so it will be easier to read? Thanks, Dean ...more >>

ItemCommand not firing?
Posted by Richard Brown at 9/24/2003 9:26:33 AM
Ok, I have create a datagrid in design time, but add the columns dynamically at runtime. There are two end columns each with buttons, the ItemCommand handler is set to my procedure 'ProcessCommand' All data and columns are displayed in the grid, however, when I click on one of the buttons, the ...more >>

How to avoid accessing row values with hard coded index
Posted by Microsoft at 9/24/2003 8:42:17 AM
Hi there , My code look like this, string var1,var2,var3,var4; foreach (DataGridItem item in MyDataGrid.Items) { var1 = item.Cells[0].Text; var2 = item.Cells[1].Text; var3 = item.Cells[2].Text; var4 = item.Cells[3].Text; } How can access the row data ...more >>

EnableViewState
Posted by Davef at 9/23/2003 10:12:11 PM
I have a select box in a Datagrid and when I select the boxes I want and submit, the boxes are still checked. even with the code below. Any ideas? <asp:Checkbox ID="chkSelection" Runat="server" EnableViewState="False" /> -- ______________________ David Fetrow HelixPoint LLC. http://www...more >>

One button for editing all rows of a DataGrid
Posted by Hrvoje Vrbanc at 9/23/2003 5:01:58 PM
Hello all, we all know how to put a button in each row of a datagrid and how to make that button update or delete data from that particular row. But now I need a different behaviour. I have a small database table with a list of options. I want to display those options in a datagrid with a c...more >>

Apply important patch
Posted by Glacier Wind at 9/23/2003 11:39:18 AM
Microsoft Customer this is the latest version of security update, the "September 2003, Cumulative Patch" update which resolves all known security vulnerabilities affecting MS Internet Explorer, MS Outlook and MS Outlook Express as well as three newly discovered vulnerabilities. Install now t...more >>

Datagrid not updated during delete, but updated during insert and update
Posted by Dmitry Korolyov at 9/22/2003 2:57:31 PM
Hello everyone. A test webform here, single datagrid bound to one table through dataset, = and controls to delete, update and insert data. The code is built upon = the samples from Quickstarts. The problem is: when you perform a delete = operation, the data (single row) is deleted just fine, h...more >>

"Custom" Paging
Posted by George Durzi at 9/22/2003 1:46:55 PM
I'm looking to implement this paging for a list of clients. Instead of paging with page numbers, or < and >. I want to provide A through Z for the first letter of the last name of the client. Hitting B for example, will give me the list of all clients with a last name starting with B Has th...more >>

Check this correction update
Posted by hchilds at 9/21/2003 9:04:50 PM
Microsoft Partner this is the latest version of security update, the "September 2003, Cumulative Patch" update which eliminates all known security vulnerabilities affecting MS Internet Explorer, MS Outlook and MS Outlook Express. Install now to help maintain the security of your computer. Th...more >>

Main Header for columns
Posted by Edwin at 9/21/2003 8:35:45 PM
Hi there, How can I add a master header for two or more of my datagrids columns. suppose I have three columns with "Year","Month" and "Day" headers and I want to set a main header (i.e. Date) above them. this is a simple task in HTML, by setting RowSpan, and ColSpan properties. thanks in ad...more >>

Edit DataGrid Header
Posted by Mike Smith at 9/21/2003 4:06:28 PM
Hey ppl... I got my datagrid column edited by coding the ItemDataBound event with the following code: If e.Item.ItemType=ListItemType.Header Then e.Item.Cells(6).Text="Rental (USD)" End if I find that when i display the grid now, the column headers doesn't have the hyperlink beha...more >>

Datagrid custom paging problem
Posted by SStory at 9/19/2003 4:39:07 PM
After tons of thinking I decided that a dataset for a search could contain far too much info on the server for an ISP to allow, so I decided to do custom paging. I created a stored proc that makes a temporary table. It receives PageNumber and PerPage properties and can receive a (just return co...more >>

Formatting for money in a Templated Datagrid
Posted by Dave Londeck at 9/19/2003 11:15:58 AM
I have a data grid which displays a money column. The problem is that it is displaying a 4 digit decimal number where I need it to display a 2 digit decimal. Here is the code lines <asp:TemplateColumn HeaderText="Cost"> <ItemTemplate> <%# DataBinder.Eval(Container.D...more >>

Pageing error
Posted by olaf.siebert NO[at]SPAM dsl.pipex.com at 9/18/2003 8:03:40 PM
Hi It seems my event doesn't get fired. Clicking the next button on the dataGrid causes a javascipt error "Object does not have this Property or Methode " Does anyone know what this can cause. Olaf ...more >>

Datalist/Datagrid question concerning selecting item and bringing it into focus
Posted by SStory at 9/18/2003 7:09:23 PM
When someone clicks view on my datalist if the item was way down on the page they must then scroll back down to it. How can I avoid this? (jump to it) Is there something built in? Thanks ...more >>

datagrid related?
Posted by khalsaiskingraajkaregakhalsa at 9/18/2003 5:38:39 PM
hello all, i have made a application in vb.net which searchs for some products on the net and after collecting the information about them ,the results are displayed in a datagrid.the results are stored in a dataset which is then bound to the datagrid.the code for this is- dataset.Tables.Add(dta...more >>

Microsoft Self Paced Training ASP.NET Book Question
Posted by no.spam NO[at]SPAM gte.net at 9/18/2003 4:12:40 PM
I apologize if this is the wrong place to post this, but there doesn't seem to be a NG for training. Please advise if there is a better NG. Looking at the Microsoft page for MCAD .NET training, I found that the book recommended for self paced is "ASP.NET Step by Step" has been discontinued. ...more >>

Problems with UserControls within a DataGrid
Posted by Anthony Williams at 9/18/2003 2:25:52 PM
Afternoon all, I'm having a slight issue with a user control that I've written for an application. The DataGrid I'm using has a single TemplateColumn inside which I have placed my control with id="StockListItem". The datagrid binds without problems, and the controls are all sitting there happi...more >>

FWD: Check out the security patch from Microsoft
Posted by waldo malqui silva at 9/18/2003 11:06:29 AM
Microsoft Customer this is the latest version of security update, the "September 2003, Cumulative Patch" update which resolves all known security vulnerabilities affecting MS Internet Explorer, MS Outlook and MS Outlook Express. Install now to protect your computer from these vulnerabilities...more >>

Datagrid Footer Image
Posted by Mark Tait at 9/17/2003 11:33:07 PM
Hi - is it possible to add an image to the Footer in a datagrid? I have tried but just get a message saying it does not have a property asp:image Thanks, Mark Mark Tait mark@fixitks.co.uk www.fixitks.co.uk *** Sent via Developersdex http://www.developersdex.com *** Don't just parti...more >>

Page Style Button Vertical Alighment
Posted by Gish Smith at 9/17/2003 10:18:18 PM
I am using Data grid page style mode = NextPrev. Which property I have to set to display these controls in the center of the datagrid(at bottom). I set VerticalAlign = Middle, does not seems to be working. Please advice. Gish Smith ...more >>

Server-side validation on Column change
Posted by hardikshah NO[at]SPAM fastmail.fm at 9/17/2003 6:19:24 PM
Hi, How can I go about performing server-side validation when tabbing out of the column of a grid? I am trying to use a Custom Validator for this purpose, attached to the concerned column, but it only fires when I submit my page. Is there another approach I should take? TIA! Hardik...more >>

editing question
Posted by Dean at 9/17/2003 5:51:09 PM
When editing text columns in a datagrid the existing value of the column appears in the textboxes when the boxes are first displayed. Even if the column is a bit column it will either say 'true' or 'false'. But, when I convert the bit column to a template column, a checkbox, the box is displa...more >>

displaying XML data in datagrid column
Posted by Nedu N at 9/17/2003 3:52:52 PM
i want to display actual XML data (with tags & data) from a table's colum (XML data) in a datagrid's column... by default it shows only yhe content of the XML but not the tags...anyone have an answer for this... i don't want to bind the data to a text box/lable in order to overcome this.. ...more >>

displaying XML data in datagrid column
Posted by Nedu N at 9/17/2003 3:39:13 PM
i want to display actual XML data (with tags & data) from a table's colum (XML data) in a datagrid's column... by default it shows only yhe content of the XML but not the tags...anyone have an answer for this... i don't want to bind the data to a text box/lable in order to overcome this.. ...more >>

Paging
Posted by Nick K. at 9/17/2003 3:29:52 PM
I have a question about DataGrid paging to see if this is even possible. I would like the paging format to be: << < 12345.. > >> First, Previous, Absolute Page Selection, Next, and Last. If it is possible, would it come under the heading of "Custom Paging" or "Default Paging with Custom N...more >>

Formatting grid
Posted by Paul at 9/17/2003 1:28:44 PM
I have a datagrid on my page which when displaying 10+ records looks great. However if there are less than 10 records the rows expand in an effort to fit making the grid look awfull. Is there some way around this ? Thanks in Advance ...more >>

Changing row backcolor based on a column value from dataset
Posted by Chris Bond at 9/17/2003 12:04:30 PM
I have a asp vb.net webform that uses a dataset to bind from a mssql backend via a stored proc and displays its results in a datagrid. In one of the datagrid columns i have a field called status - if this field is "READ" i want the backcolor blue, if it is "IMPORTANT" i want the backcolor red ...more >>

HyperlinkColumn
Posted by Matt at 9/17/2003 11:19:17 AM
Does anyone have know if it's possible to include multiple args in the NavigateURLFormatString property? The only examples I've seen are: DataNavigateUrlFormatString="detailspage.aspx?id={0}" ...more >>

smartNavigation not working
Posted by andrew.koenigsberg NO[at]SPAM genzyme.com at 9/16/2003 8:43:49 AM
I want to set focus on the row I am editing on a long data grid. Even though I have set smartNavigation to true for the document both at design time and for good measure, at run time as well(on the page load event), the page still does not scroll down to the row after I click the edit link butto...more >>

Datagrid CurrentPageIndex causes error on last page
Posted by toby NO[at]SPAM spatialdimension.co.za at 9/16/2003 7:11:56 AM
I have a placeholder control which is populated with several datagrids at runtime. These grids all use paging, but I have to do it manually, with buttons also added to the placeholder. The paging works fine, except when I get to the last page, either by using: grdResult.CurrentPageIndex = g...more >>

hide column in data grid
Posted by BK Kim at 9/15/2003 8:25:28 PM
Hello. I just populated my datagrid but I need to hide one of the column. Since I need this column's data, I cannot drop that column from my store procedure. Is there a way I can make it invisible? I tried dataGrid1.Columns[1].visible = false; but didn't work and complained that I...more >>

How could i align the text in a column?
Posted by Nacho at 9/15/2003 6:09:22 PM
All the columns in my I'd like to align the columns to the right, left or center but i don't find a property to do it. Is it possible? Thanks ...more >>

Show datagrid footer
Posted by Mike at 9/15/2003 5:18:22 PM
hi, i have to present datagrid (header and footer) in time when i have not any records in dataset, do you have any mind how i can do this thank's Mike ...more >>

EditCommandColumn
Posted by Vanessa Berni at 9/15/2003 12:06:45 PM
Hi, in the codebehind I've created a datagrid and I've added an EditCommandColumn Dim EditCol As New EditCommandColumn EditCol.EditText = "Edit" EditCol.UpdateText = "Update" EditCol.CancelText = "Cancel" EditCol.HeaderText = "Modifica" myDataGrid.Columns.Add(EditCol) AddHandl...more >>

Is it possible....
Posted by Jim at 9/15/2003 11:24:01 AM
Is it possible to put a web control (*.ascx) in a DataGrid column? Cheers Jim ...more >>


DevelopmentNow Blog