ASPFriends.com 'aspngdatagridrepeaterdatalist' list Archive - July 2002
Messages
Page: 123
DataGrid Updating (7 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Hi all, I have just gone back to a program that I created in Beta 2, and I'm having a problem with getting the values from the controls. The following code worked, but now is not returning any values. Could someone tell me what I'm doing wrong? TIA Scott Sub dg Update(ByVal sender As Object, ByVal e As DataGridCommandEventArgs) Dim db As New Marias.DataDb() Dim intReturn As Int16 Dim structOrderDe...
Dynamic DropDownList for editting, Invalid attempt to FieldCount when reader is (2 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Hi All, I'm getting this error "Invalid attempt to FieldCount when reader is closed". OnEdit I'm trying to put names from the DB into the DropDownList "editL1" below. asp:TemplateColumn HeaderText "L1" ItemStyle Wrap "false" ItemTemplate asp:Label runat "server" Text ' %# DataBinder.Eval(Container.DataItem, "L1") % ' ID "Label4"/ /ItemTemplate EditItemTemplate asp:dropdownlist ID "editL1" DataValu...
Datagrid Delete row (3 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Moved from [aspngfreeforall] to [aspngdatagridrepeaterdatalist] by Tim Musschoot Tim.Musschoot@rug.ac.be I have a datagrid that displays some bound data and I also have a template column that I want a user to click to have a record deleted. However since the column is not databound how do I get the ID i need to pass? asp:TemplateColumn HeaderText "Delete" ItemTemplate a href "#" onclick "javascrip...
Where is my datagrid (2 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Moved from [aspngvs] to [aspngdatagridrepeaterdatalist] by Ryan Trudelle Schwarz ryants@aspelite.com Beginner's Q: Help! I only did one thing, add a datagrid to a blank form, but where is it? It did complied without errors. I open my 1st VB solution and project, which gave me a WebForm1.aspx by default. I grab a DataGrid and set it's property to as: asp:DataGrid id "DataGrid1" AllowPaging "true" P...
after checking checkbox (2 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
I have a datagrid with a checkbox column. While I loop through my dataset to see if a checkbox is check, if it is I want to run a SQL statement to insert the related data. So basicly once I determine a checkbox to be checked, how do I grab the rest of the appropriate data from the row? I think the Row[0] throws me off because it should be whatever ever row the loop is on. This is part of what I ha...
Dynamic Images and Text in a DataTable or DataGrid Cell (4 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Here's my situation: I have a User Control that populates a DataGrid (that automatically populates the columns). There are a number of different DataGrids that can be shown based on User Control inputs. Each varies in column headings and contents of the table. My User Control process is as follows: 1) Dynamicall generate the SQL statement 2) Pass SQL to data access layer 3) Receive a DataTable ( O...
Cast DataGrid to Table (2 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Hi, Is it possible to cast System.Web.UI.WebControls.DataGrid to System.Web.UI.WebControls.Table? I has a situation where I need to treat a datagrid as table and add extra TableRows to it. But it seems DataGrid cannot be casted to Table. TIA, Ck MESSAGE IS INTENDED ONLY FOR THE USE OF THE INDIVIDUAL OR ENTITY TO WHICH IT IS ADDRESSED AND MAY CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL AND...
Visibility of column in datagrid (2 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
I'm creating a datagrid on the fly. For some reason, none of the events of the datagrid work for my scenario... No matter when I set the myDataGrid.Columns[0].Visible false, it always says index out of bounds, but when the page runs, the Datagrid shows up just fine (except of course, that first column is visible). Anyone know where I can do this? I've tried: dg new DataGrid(); dg.DataBinding new S...
Adding a New Row (4 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Hi Guys, I have almost got all elements of the Data Grid nailed down now. 20 The last one eluding me is how to add a new row to the data grid. The only example I have come across is in C#, and I am coding in VB. The C# example does this on the ItemCreated event by inserting a 'Add entry' row at Item Index 0 using the code below. I understand the code except for the line where it mentions the linkb...
Not answered yet: AllowPaging="true" (2 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Moved from [aspngfreeforall] to [aspngdatagridrepeaterdatalist] by Tony Stark IronMan@aspelite.com Please help, I have a blank form, and added just a DataGrid Control. Everything is running fine when I hit F5 , I could see the DataGrid and the content. But when I added AllowPaging "true" to the Grid tag I can no longer see the grid when I hit F5 . And it did compiled without errors. The only diffe...
How to I use "Order By" with a datagrid (4 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
I am trying to display data in a DataGrid and I cannot figure out how to get the records to be order by (or sorted) by a specific column (Ascending)? Thanks, Rob Collins This email and any files transmitted are confidential and intended solely for the use of the individual or entity to which they are addressed, whose privacy should be respected. Any views or opinions are solely those of the author...
DataGrid records (2 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Hello all, I think this shouldn't be to hard. I have a simple piece of code that fills a datagrid with some records. Code below: Sub QueueDetails() Dim DS As DataSet Dim MyConnection As SqlConnection Dim MyCommand As SqlDataAdapter MyConnection New SqlConnection("") MyCommand New SqlDataAdapter("SELECT id, Name, email, Department, PhoneNumber, Description, DateEntered, assignedto FROM tblRecords W...
How to check If DataRepeater is Empty? (3 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Hi everybody, I'm binding a dataRepeater to a DropDownList but I want to check if the DataRepeater si empty first so I can display a generic message. I can't find any syntax anywhere, I tried "If Datarepeater Is Empty" as well as "If is Nothing" just of the top of my head. Can any1 help plz Pierre
Refreshing the DataGrid after delete... (5 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
After I delete the record from the table that is bound to my datagrid, I issue: Datagrid1.DataBind() But unless I refresh the page, my datagrid isn't refreshing... Any Ideas? Barry
Custom Paging, Modifying the Display? (2 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Hi there...thanks for the help with my previous question, very helpful. I have custom paging completely implemented, using NumericPages instead of NextPrev links. I have two things I would like to add: 1) I would like to use the NextPrev AS WELL as the NumericPages, but the DataGrid does not natively support this as far as I can tell. 2) I would like to add text to various areas of the pager foote...
SV: Re: How to I use "Order By" with a datagrid (6 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Use a dropdown, set the values to the column names in your SQL statement. Use OnSelectedIndexChanged and insert the value of the dropdown into your Sql statement use a session to decide ASC or DESC: "Select * From myTable Order By " & strValue & " " & Session("sortorder") hth Regards/Halsningar Andre Colbiornsen Sonnenburg Communications Bergsgatan 3, SE 211 54 Malm F6 Sweden Tel.: 46 (0)40 97 78 ...
colspan within a datagrid (2 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Hi All, Can anyone point me in the right direction this should be such a simple task !! I'm trying to add colspan to a column within a datagrid table, I need to use a datagrid and not a repeater. I've included my datagrid code below... asp:DataGrid id "ForumTopics" AutoGenerateColumns "False" width "100%" cellpadding "4" cellspacing "1" border "0" ShowHeader "True" AllowPaging "True" OnPageIndexCh...
How can i get the category value from the ItemIndex property. (2 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
How can i get the Category value from the ItemIndex property. Sub DataList2 ItemCommand(sender As Object, e As DataListCommandEventArgs) Dim cmd As String e.CommandSource.CommandName If cmd "select" Then DataList2.SelectedIndex e.Item.ItemIndex SelectedItemTemplate Category:   %# Container.DataItem("Category") % /SelectedItemTemplate For 2002 ASP.NET Solutions & Articles goto: http://asp...
Problem with imbricated repeaters.... (2 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Moved from [aspngdata] to [aspngdatagridrepeaterdatalist] by Marcie Jones marciejones@yahoo.com hello, (I'm french...so excuse my english please...thanks) I want to build an ASP.Net page where i have 3 repeaters imbricated. the Repeater1 linked to DataView1. (DataView1 is a view on DataSet1) the Repeater2 linked to DataView2 which is built with regard to the Repeater1 Item data. (DataView2 is a di...
DataGrid gurus question... (2 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Is there built in support for "going to" the selected item in a large data grid, ie. like the anchor ability of HTML. My scenario is I have a datagrid with 50 rows in it. The rows represenet a set of test questions, so I REALLY need to display one page deliberately, some questions may be related but appear far apart and my specs require that all qus appear on one page. Long story short, pagination...
I need help on how to modiy TemplateColumn HeaderText and databound HeaderText in a datgrid using VB (3 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
I would like to know in VB how to in the databound event get the TemplateColumn HeaderText "Title" and the BoundColumn HeaderText "Owner" values so that I could modify them on the Itemdatabound event Protected Sub FormatHeaders(ByVal sender As Object, ByVal e As DataListItemEventArgs) If e.Item.ItemType ListItemType.Header Then CType(e.Item.FindControl("Title"), Label).ForeColor "How do i get the ...
(Urgent) Datagrid Update command (4 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Hi, How can I add some javascript code to the Update command of an editable datagrid? How can I add a confirm dialog box (javascript client side) when a user chooses to edit a row on the datagrid,change the data and then click the update link? How can I add client side code to this update link? My problem is that I cant reference the update link so I can use the ".add.attributes" available to most...
NOT ANSWERED BEFORE: Proble with OnItemCeated or OnDataBound events in a datagrid and a CodeBehind UserControl (VB) (3 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Does any one have any success in using OnItemCeated or OnDataBound events in a datagrid and a CodeBehind UserControl (VB) I take a working user control and add an OnItemCeated or OnDataBound event and get the following error. I have been going around in circles on this with no good answers as yet. Compiler Error Message: BC30456: 'Item Created' is not a member of 'ASP.document ascx'. Source Error:...
Item Command Not working and I can't see why (2 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Hi there, I ve got a page where a button operates an event. It seems like it should work but doesn t. Please help! Kevin In the html: asp:datalist cellspacing "0" width "100%" id "myDataList" runat "server" dataKeyField "ShopFeatureID" EnableViewState "false" CellPadding "0" ItemTemplate asp:ImageButton ID "ButtonRemove" Runat "server" CommandName "delete" ImageUrl "~/images/delete.gif" /  &n...
Expand & Collapse DataGrid control (3 replies)
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
Moved from [aspngwebcontrols] to [aspngdatagridrepeaterdatalist] by Yannick Smits dotnet@stepcompany.com Has anyone seen/developed a DataGrid type control that can expand and collapse child/detail rows via the standard plus and minus icons? And, of course, responds to click events on the icons. It would good if it was run from client side script. A lot of these controls seem to run on that server ...
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com