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 2007

bug? cannot get value of cell on invisible column
Posted by Beemer Biker at 4/27/2007 12:44:27 PM
This is strange - I have a grid with columns: id, authString, realName, lastLogin, administrator, files_path_prefix id is a primary key in sql table. I didn't want the id to show up when clicking on gridview "edit" command so I made that column invisible. This works nicely and one does n...more >>

Best Way to Access a Database
Posted by Gabe Matteson at 4/27/2007 12:00:00 AM
How would you recommend the best way to access a database? By 'best' I mean, what solution would allow me to modify the data as much as possible, e.g. layout on the web page etc. I know in ASP 3, going through the data and using recordsets i could output the data all over the place, but with a...more >>

sql build cmd uses [ and ] but I need "
Posted by Beemer Biker at 4/26/2007 5:19:58 PM
Was wondering if there is some setting in VS2005 where it can build my sql commands using that postgresql quote instead of brackets. Createing a SqlDataSource and using this bible reference: http://www.123aspx.com/redir.aspx?res=35840 I checked the "Generate INSERT, UPDATE dn DELETE stateme...more >>

Data Grid
Posted by Sharad at 4/26/2007 4:52:04 AM
I need a grid which has the option of combo box and i should be able to add rows at the run time. Please advise.....more >>

Add newline to Gridview cell
Posted by John Doe at 4/24/2007 3:02:21 PM
I'm binding a Gridview to a DataTable. I want to display the Gridview cells with multiline values. In populating the data for the DataTable, I use Environment.Newline but the data doesn't display in Gridview as multiline: newRow[myDataColumn.Ordinal] = diff.ToString("N")+ Environment.Newlin...more >>

Extra line in GridView
Posted by John Doe at 4/19/2007 10:59:25 AM
Why am I am getting an extra line in GridView with the following text in the 1st column: "System.Web.UI.WebControls.TableRow" Here's partial listing of my code: ................... grid.DataSource = loadTable(ds); grid.DataBind(); .................. private D...more >>

GridView rowdeleting - e.Values.Count = 0??
Posted by Marianne at 4/16/2007 9:31:14 PM
Hi, I am using a GridView, no sql or objectdatasource. In the rowdeleting event, the event arg e.Values.Count = 0, and the sender.Rows = 0, yet I have 3 rows and multiple non-key datavalues. Why would these values be 0? thanks for any help, Marianne event code: protected void CoBran...more >>

DataGrid EditItemTemplate-- how to retrieve a DropDownList validator?
Posted by Steve Hershoff at 4/10/2007 5:42:13 PM
Hi everyone, I have a DataGrid with several TemplateColumns. One of these columns has an EditItemTemplate that contains an ASP.Net DropDownList. I'm catching this DropDownList's SelectedIndexChanged event. I also have another TemplateColumn, with a RequiredFieldValidator that validates...more >>



How to retrive a reference to actual obj in ObjectDataSource?
Posted by Victor Reboucas at 4/8/2007 8:11:10 PM
Hi, I have lots of data layer objects and want to use them in an ObjectDataSource object to bind it's results to a GridView. The problem is that all these data layer objects are (let's say) "connectionless", that is, the connection they use is assigned by an upper level business object. ...more >>

Gridview & Validation Controls
Posted by Kat at 4/8/2007 7:25:22 PM
How do I get the RegularExpressionValidator to work with a gridview during an update? The error message displays briefly -- very briefly, you don't even see it unless you are stepping through the code, but the update continues as if nothing happened. If I have to use the RowUpdating event, ...more >>

Changeing color of cell of grid
Posted by Matthew Webster at 4/7/2007 6:35:18 AM
We are making a theatre booking system and we want the cell of grid to change color when we click on it. *** Sent via Developersdex http://www.developersdex.com ***...more >>

selecting a row in a datagrid without postback
Posted by joy at 4/5/2007 12:16:06 AM
is it possible to select a row in a datagrid without postback....... ...more >>


DevelopmentNow Blog