Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:705541
More Search Options
RSS Available
Matching Posts
Re: Read cell value on GridView (or SQLDataSource)
All right...You are the man. Thanks so much. I clicked "Mark as the answer" not sure if it worked
Posted to
Data Presentation Controls
(Forum)
by
BasketballMike
on 3/22/2007
Re: Read cell value on GridView (or SQLDataSource)
I couldn't get this to work. I get an "Object reference not set to an instance of an object." error. There is no control called "CheckBox1" that I can see in the HTML or grid properties. I tried using the name a the field, but no luck. Thanks, I'll keeep trying
Posted to
Data Presentation Controls
(Forum)
by
BasketballMike
on 3/22/2007
Re: Read cell value on GridView (or SQLDataSource)
I got it to work for regular fields...... Below works for text fields, but I can't get it to work for a checkbox field. I tried some conversion functions. I'm going to try OnRowCreated event, but I think I have the same problem. //Works GridViewRow row = GridView1.Rows[0]; TextBox1.Text = row.Cells[1].Text; --------------------------------------------------------------------------- //Does not work GridViewRow row = GridView1.Rows[0]; TextBox1.Text = row.Cells[2].Text; //Part of grid HTML cell1..
Posted to
Data Presentation Controls
(Forum)
by
BasketballMike
on 3/22/2007
Filed under: GridView asp.net
Read cell value on GridView (or SQLDataSource)
I have a gridview with one row (summary information). I want to read the value of one of the cells. The third column of the first row. It is a boolean value. I guess I could read the value from the SQLDatasource that is the datasource for the grid. Here is the code I have so far object dataItem = GridView1.Rows[0].DataItem; bool myBool = ( bool ) DataBinder .Eval(dataItem, "Approved" ); Any help would be appreciated. Thanks Mike
Posted to
Data Presentation Controls
(Forum)
by
BasketballMike
on 3/22/2007
Filed under: ADO.NET, ASP.NET 2.0 FormView GridView Master/Detail Update, asp.net 2.0 GridView databound codebehind ItemTemplate Zimmergren :), asp.net 2.0 GridView databound ItemTemplate, c#, databind, databinder, databinding, datagrid, gridview controls dynamically textbox, gridView GridViewUpdateEventHandler TemplateField, GridView List ObjectBinding Collection, GridView asp.net, gridView datakeys
Data Format string not working in ASP Gridview
Does anyone know why my data format string don't work. I am using them in a gridview to format a date column. I have tried allot of different ones that people say work. Is there a property on the gridview that you ahve to set? Any help would be appreciated. DataFormatString ="{0:ddd}"
Posted to
Time Tracker Starter Kit
(Forum)
by
BasketballMike
on 3/19/2007
Filed under: Gridview
Re: Vista, debugging and Visual Web Developer Express
I have also been having problems opening my web app database. If I open my database in SQL Server Express, write some sprocs, whatever...and then try to run my app I get access denied errors and my dataaccess is all screwed up. There must be bugs with the express apps in Vista conserning security. Maybe I don't know enough about Vista.
Posted to
Visual Web Developer 2005 Express
(Forum)
by
BasketballMike
on 3/19/2007
Re: Updating Gridview, Business Object, hide identity column
I changed the gridviews HTML code to this < asp : GridView ID ="GridView1" runat ="server" AutoGenerateColumns ="False" DataSourceID ="WeeklyTimeApprovalData" DataKeyNames ="SummaryId"> the DataKeyNames ="SummaryId"> did the trick Mike
Posted to
Time Tracker Starter Kit
(Forum)
by
BasketballMike
on 3/12/2007
Trouble with SQL datasource control, "Cannot get web application service"
Hi, I am working with the time tracker starter kit and learning allot. When I drag a SQL datasource control on to a web form and select the "Configure Data Source" smart tag. I get an error. The error reads "...while getting connection string information from configuration "Cannot get web application service."". I tried pasting a connection string into the HTML but I still get the message. When I drag a table on and the SQL Data source is created autoimatically it works, but when you try to look
Posted to
Time Tracker Starter Kit
(Forum)
by
BasketballMike
on 3/12/2007
Gridview control, need to hide identity column, but "Updates" fail.
I have a gridview control tied to Business object data source, the bus obj class has an update method and a select method. Everthing works fine, until I triy to hide the identity column. Then update don't work. The identity column is used in my update stored procedure, but end user don't need to see this and I don't want then to be able to update this field. How can I pass the identity column to my method but hide it from end users. Thanks, Mike
Posted to
Data Presentation Controls
(Forum)
by
BasketballMike
on 3/8/2007
Updating Gridview, Business Object, hide identity column
Hi, I created a BLL Class "SubmitTime.cs" & BusObjDataSource control very similar to the TimeEntry class and ProjectListDataSource found on TimeEntry.aspx. The select and update functions are very similar to the timeEntry select and update functions. I wired up a gridview, my SubmitTime class and my select and update methods. Everything works fine until I try hide the identity column (Which I use in my Update stored procedure in the DAL). When I edit the column, and set read only = true or visible
Posted to
Time Tracker Starter Kit
(Forum)
by
BasketballMike
on 3/8/2007
Filed under: passing parameters, Updateing, Gridview
Page 1 of 2 (16 items) 1
2
Next >
Channel 10:
Faster Solid State Drives for Windows 7 Arrive
ASP.NET:
Death to confirmation dialogs with jquery.undoable
Channel 9:
E2E: Brian Beckman and Erik Meijer - Co/Contravariance in Physics and Programming, 1 of 2
TechNet Edge:
Windows Server 2008 R2 Quick Look #3 - PowerShell V2
ASP.NET:
2009 Blogged - Greatest Hits
WindowsClient:
2009 Blogged - Greatest Hits
Channel 9:
Nikolaj Bjørner and Leonardo de Moura: The Z3 Constraint Solver
Channel 9:
MEF & Silverlight 4 Beta - Part 2, Imports & Exports
Channel 9:
MEF & Silverlight 4 Beta - Part 1, Introduction
WindowsClient:
The (Near) Final Word on Multi-Monitor Taskbars for Windows 7 - Ultramon vs. DisplayFusion
WindowsClient:
Looking back at 2009, and forward to 2010
Silverlight:
Polling Video – A Viable sub-second alternative?
TechNet Edge:
Windows Server 2008 R2 Quick Look #2 - Active Directory Recycle Bin
Channel 10:
I'm a Windows 7 PC Themes
Channel 10:
24 Years of Windows Box Art
WindowsClient:
Silverlight tutorial: HOW TO build CommandLink Control in Silverlight with Expression Blend 3 and Behaviors
ASP.NET:
Converting an RGB Color To Hex With JavaScript
Silverlight:
Silverlight HVP Design – Configuration & Scenarios
Channel 9:
Channel 9 Live at PDC09: Day 3 Welcome
Channel 9:
Channel 9 Live at PDC09: TWoC9 Day 3
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online