| User Control inside a DataGrid (2 replies, VIP) |
| ASPFriends.com 'aspngdatagridrepeaterdatalist' list |
| Hi, I am having problems accessing the properties of a UserControl inside a DataGrid. The property of the UserControl is "PostedBy", and I am getting the error message: 'PostedBy' is not a member of 'System.Web.UI.UserControl'. The strange this is that I ONLY get this error message when the UserControl is INSIDE a DataGrid when the identical UserControl, on the same page, is OUTSIDE the DataGrid, ... |
|
| Ignored Columns in a Data Grid/Data Set? (2 replies) |
| ASPFriends.com 'aspngdatagridrepeaterdatalist' list |
| I had a interesting thing occur to me the other day, and was just curious if anyone else has seen this. I built a select statement as "select * from table x" The data that was displayed in the datagrid was minus the table's image, binary, and Guid column's. With a little testing I was able to determine that Image, Binary, UniqueID, TimeStamp,sql variant, and varBinary somehow disappeared between t... |
|
| Is it possible with paging of a datalist? (2 replies) |
| ASPFriends.com 'aspngdatagridrepeaterdatalist' list |
| Hi Is it possible with paging of a datalist? Have any example or hints? Eivind |
|
| Displaying a Master-Detail query with nested tables. (2 replies) |
| ASPFriends.com 'aspngdatagridrepeaterdatalist' list |
| Moved from [aspngstart] to [aspngdatagridrepeaterdatalist] by James Avery javery@deluxeeng.com !DOCTYPE html PUBLIC " //W3C//DTD HTML 4.01 Transitional//EN" html head meta http equiv "Content Type" content "text/html;charset ISO 8859 1" title /title /head body div class "moz text html" lang "x western" Hello. br br I have to display the result of  a br br SELECT T1.id, T1.value, T2.value FROM... |
|
| Sort Template Columns - DataGrid (2 replies) |
| ASPFriends.com 'aspngdatagridrepeaterdatalist' list |
| How do implement the Column Sorting feature of the DataGrid on a TemplateColumn? The following is borrowed from the BoundColumn sorting method. Sub dgrdItems SortCommand(sender As Object, e As DataGridSortCommandEventArgs) SortField e.SortExpression BindDataGrid End Sub asp:DataGrid ID "dgridItems" AllowSorting "True" OnSortCommand "dgrdItems SortCommand" Runat "Server" Columns asp:TemplateColumn ... |
|
| Selecting rows in a DataGrid (4 replies) |
| ASPFriends.com 'aspngdatagridrepeaterdatalist' list |
| I need to create a DataGrid that allows users to select rows. I have come to the point where I can populate the DatGrid with information, but the selecting part is where I am having problems with. Can anyone point me in the right direction on: 1) What to do? 2) Where to go for examples? Thanks everyone, Marcelo. |
|
| Checkbox controls in DataGrid (4 replies) |
| ASPFriends.com 'aspngdatagridrepeaterdatalist' list |
| Hi, 20 I have a set of rows read from a table displayed in a DataGrid control. 20 My requirement is that i need to add a checkbox for each of the rows 20 so as to enable the user to select rows of his choice. The selected 20 rows, on the click of a button, has to be determined and a database 20 update operation has to be done corresponding to each of the rows selected. My query is How do i bind th... |
|
| "default value" field in SQL Server database shown as blank in DataGrid (4 replies) |
| ASPFriends.com 'aspngdatagridrepeaterdatalist' list |
| Moved from [aspngfreeforall] to [aspngdatagridrepeaterdatalist] by James Avery javery@deluxeeng.com This is a multi part message in MIME format. NextPartTM 000 1cd04a23 8a8b 49cc 9825 fbf9543773ae Content Type: multipart/alternative; boundary " NextPart 001 01C1DB3C.8691AB22" NextPart 001 01C1DB3C.8691AB22 Content Type: text/plain; charset "iso 8859 1" Content Transfer Encoding: quoted printable I... |
|
| Get to Datagrid columns in code-behind (3 replies) |
| ASPFriends.com 'aspngdatagridrepeaterdatalist' list |
| Moved from [aspngfreeforall] to [aspngdatagridrepeaterdatalist] by James Avery javery@deluxeeng.com How do I refer to the first or second column in my code behind? The following code is not working: Sub ItemDataBound(ByVal source As Object, ByVal e As DataGridItemEventArgs) If showCheckMark Then e.Item.Cells(0).Visible True Else e.Item.Cells(1).Visible True End If End Sub ASP:DATAGRID OnItemDataBo... |
|
| Using DataBinder statement with concatenation (2 replies) |
| ASPFriends.com 'aspngdatagridrepeaterdatalist' list |
| Greetings I'm trying to use the DataBinder.Eval to dynamically build a hyperlink in a grid. Now it would appear that you can only use a single DataBinder statement per attribute of any control. However I want to be able to prefix and suffix the value in the datasource as it isn't quite right for the link. So the following produces the DataBind as part of the URL! Not value of the data but the stri... |
|
| Dynamic Columns (2 replies) |
| ASPFriends.com 'aspngdatagridrepeaterdatalist' list |
| Hello All, I seem to be missing something. I have a couple of column I dynamically add to a datagrid (both ItemTemplate's and EditItemTemplates). The datagrid renders with no problem and I can go into edit mode and cancel out of edit mode also with no problem. However, for some reason, I can't seem to retrieve any updated values from my EditItemTemplates. In addition, I have tried to loop through ... |
|
| Data paging (2 replies) |
| ASPFriends.com 'aspngdatagridrepeaterdatalist' list |
| In Wrox's Professional ASP 3.0, there where examples given for paging data. One involved using a stored procedure to return only one page of data rather than the entire set. What I would like to know is how you can use it in a tier'd approach... (see below) Here is the example procedure: create procedure MyProcedure ( @Start int @End int ) as declare @totalrecords int create table #temp ( record i... |
|
| Nested DataGid Command Events (2 replies) |
| ASPFriends.com 'aspngdatagridrepeaterdatalist' list |
| I have a DataGrid that is nested inside of a Repeater. Can anyone explain how I wire the events in that DataGrid. I have tried wiring the DataGrid events like I would if it was not nested, but got errors. VS.NET does not seem to see the DataGrid and will not add the object reference to the Code Behind, and even if I add it manually, I get object reference not set errors. Thanks! Devin |
|
| edit/update datagrid (2 replies) |
| ASPFriends.com 'aspngdatagridrepeaterdatalist' list |
| Moved from [aspngcontrolscs] to [aspngdatagridrepeaterdatalist] by James Avery javery@deluxeeng.com Hi All, what am i missing? textbox do not contain updated (new) data i enter. say grid starts with '11/27/2002' i click 'enter', enter '02/02/2002' into the date textbox, click update, & strDate will have the original '11/27/2002' in it! if i hardcode the new date into strDate, the database will upd... |
|
| DataBinder.Eval (3 replies) |
| ASPFriends.com 'aspngdatagridrepeaterdatalist' list |
| Moved from [aspngfreeforall] to [aspngdatagridrepeaterdatalist] by Alex Lowe webmaster@asp grandrapids.net I have the following statement that will work in my .aspx page: asp:ImageButton ImageUrl ' %# DataBinder.Eval(Container.DataItem, "ProductImage") % ' Runat server /asp:ImageButton If I need to add a path (Images/) before the image, I will have a problem: asp:ImageButton ImageUrl 'Images/ %# D... |
|
| TemplateColumn (3 replies) |
| ASPFriends.com 'aspngdatagridrepeaterdatalist' list |
| Moved from [aspngfreeforall] to [aspngdatagridrepeaterdatalist] by Charles M. Carroll charlesmarkcarroll@yahoo.com How do I add a template column to a grid programmatically? Please, jh |
|
| Dynamically linking two DropDownLists in a datalist (2 replies) |
| ASPFriends.com 'aspngdatagridrepeaterdatalist' list |
| I am trying to display two dropdownlist in a datalist when it is being edited. The items in the second one are filtered based on what the user selected in the first one. 20 I can't seem to access the second dropdownlist when I am in the method triggered by an event issued by the first one. EditItemTemplate tr td asp:dropdownlist 20 DataValueField 3D "JobID" 20 DataTextField 3D "JobName" 20 id 3D"E... |
|
| DataGrid Sorting Problem (5 replies) |
| ASPFriends.com 'aspngdatagridrepeaterdatalist' list |
| Moved from [aspngfreeforall] to [aspngdatagridrepeaterdatalist] by Charles M. Carroll charlesmarkcarroll@yahoo.com Hi, When I try to perform the ASC and DESC sorting of a datagrid, it just postback and sort nothing. I'm guessing is the ViewState have problem, how can I ensure the viewstate is not disable? The following is my codes: the SortCommand Function: Private Sub dgd GuestBook SortCommand(By... |
|
| Passing SelectedItem values between windows (3 replies) |
| ASPFriends.com 'aspngdatagridrepeaterdatalist' list |
| Moved from [aspngdata] to [aspngdatagridrepeaterdatalist] by Marcie Jones marciejones@yahoo.com I have opened a new window from a button click on a .aspx form. In the new window is a datagrid that allows the user to select an item. Once an item is selected, the user then clicks an OK button. I would like to pass back to the original window a non visible value of the SelectedItem in the datagrid. I... |
|
| DataItems in a DataReader (4 replies, VIP) |
| ASPFriends.com 'aspngdatagridrepeaterdatalist' list |
| Moved from [aspngfreeforall] to [aspngdatagridrepeaterdatalist] by Marcie Jones marciejones@yahoo.com I'm using a DataReader to display a record from my database. I use %# Container.DataItem("FieldName") % in the ItemTemplate section and it works fine but when I use this in the HeaderTemplate it fails. How I display data in the Header section? Thanks. asp:Repeater ID "rptCompany" Runat "Server" He... |
|
| Formatting a Date Field (3 replies) |
| ASPFriends.com 'aspngdatagridrepeaterdatalist' list |
| I'm using this code to display a date within the ItemTemplate of a DataReader %# Container.DataItem("ProxyDate")% but it displays the long from Sql Server. I just want the date displayed as mm/dd/yy. So far I've tried the combinations below with no luck yet. How do I format this correctly? Thank you. %# Container.DataItem.ToString("d", "ProxyDate")% %# Container.DataItem.ToString("ProxyDate")("d")... |
|
| Dataset, datatables and the datagrid ? (3 replies) |
| ASPFriends.com 'aspngdatagridrepeaterdatalist' list |
| Moved from [aspngcs] to [aspngdatagridrepeaterdatalist] by Douglas Reilly doug@accessmicrosystems.net My db looks like this: User Active Email kajskol 1 kajsan@firstdev.se mikjan 1 miklan@firstdev.se timkar 0 timkarl@firstdev.se annsol 0 anna@firstdev.se But I'd like to present it like this on the admin webinterface: User Active Email kajskol Yes kajsan@firstdev.se mikjan Yes miklan@firstdev.se ti... |
|
| Counting Rows in a DataGrid (2 replies) |
| ASPFriends.com 'aspngdatagridrepeaterdatalist' list |
| Moved from [aspngfreeforall] to [aspngdatagridrepeaterdatalist] by James Avery javery@deluxeeng.com Hi all, I have a search results form, which has about 7 datagrids and 7 Labels on it Is there a way to count the rows in the grid, and if it's equal to 1 (it has just the header) then to turn it's visible property to false. The Datagrids getting populated by a sqldatareader, Which I notice does not ... |
|
| Column Span in DataGrid..... (3 replies) |
| ASPFriends.com 'aspngdatagridrepeaterdatalist' list |
| Moved from [aspngfreeforall] to [aspngdatagridrepeaterdatalist] by Charles M. Carroll charlesmarkcarroll@yahoo.com Hello Everyone, How can i span a textbox or any control in a datagrid across columns.... Can any one help me out... Praveen B Praveen Kumar B Intellect Data Systems R T Nagar Bangalore 560 032 Do You Yahoo!? Yahoo! Tax Center online filing with TurboTax http://taxes.yahoo.com/ |
|
| DataBinding HtmlAnchor (8 replies) |
| ASPFriends.com 'aspngdatagridrepeaterdatalist' list |
| Hi all, I am trying to bind data to an html anchor. I am attempting it like this: a href ' %# "emp details.asp?payno " & httpUtility.UrlEncode(DataBinder.Eval(Container,"payroll")) % ' runat "server" as this is how i saw it on the quickstart tutorials. My query (on access database) is like so: Dim myCommand As New OleDbDataAdapter("SELECT [detailsTBL].[surname], [detailsTBL].[firstname], [statusTB... |
|