Multimobile Development: Building Applications for any Smartphone
microsoft.public.dotnet.framework.aspnet.datagridcontrol
Up to: Discussion Lists

Post a new message to this list...
Latest Discussions Archive
advanced gridview (2 replies)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
Hi, would anyone know please if there is some advanced gridview which can be downloaded for free ? Such gridview should count / display number of records, sum of chosen columns, save / cancel / update / delete / print buttons for entire gridview, paging allowing for manual input and for going straight to the first or the last page, horizontal and vertical scrolling in gridview (not in browser), et...
Hyperlink column not clickable (3 replies)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
Hi, I have a gridview on my page bound to a dataset. It shows all the information, but the one column that should be a hyperlink is not working. Here is the code I use to create the hyperlink column: Dim clHP As New HyperLinkField clHP.DataTextField "dateline" clHP.HeaderText "Date" clHP.HeaderStyle.BackColor gridbackcolor clHP.HeaderStyle.ForeColor gridforecolor clHP.HeaderStyle.Font.Name "Arial"...
Can onmouseover change row borders? (4 replies)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
I have a datagrid with alternating bg colors, and I added an onmouseover event to shade them yet another color. Here's the way Google taught me to do it: If e.Item.ItemType ListItemType.Item Or e.Item.ItemType ListItemType.AlternatingItem Then e.Item.Attributes.Add("onmouseover", "this.style.backgroundColor '#DFCBFF'") End If If e.Item.ItemType ListItemType.Item Then e.Item.Attributes.Add("onmouse...
Datagrid first row issues (2 replies)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
I have a datagrid that contains a HyperLinkColumn and a TemplateColumn . The HyperLinkColumn failes to keep the proper DataNavigateUrlFormatString in the first row of data however it does keep the DataNavigateUrlFormatString for the subsequent rows that follow (row 2, 3, 4, ....n). During debugging it appears the first row's DataNavigateUrlFormatString is of the correct format. But when you let it...
ropdownlist selected index remains zero (2 replies)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
Hi, I have a ModalPopupExtender in my page. And In popup I am showing a gridview. Inside Gridview a dropdownlist is there. In pop there is a submitt button. But problem is in dropdownlist selected index remains zero irespective of my selection.Even after I select second,third or fourth Item ti will show first item of the dropdown as the selected Item. Please help. Please let me know why dropdownli...
value for a textbox inside grid from popup (2 replies)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
Hi, I have to develop a time sheet application for my organization, where employees will select the nature of work, enter client details (into textbox inside grid) and other details and enter the number of hours spent. In that, while selecting clients I have to show them a pop window which again will have grid showing client address, name and other details. From the pop up window employee will sel...
non visible columns (2 replies)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
How do you make a column in a datagrid non visible?
Apply javascript mouse over feature to a gridview (2 replies)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
There is a column "ZipCode" in gridview. Is it possible to apply javascript mouse over feature to this column? Doing so, once user move mouse over a cell under "ZipCode" city name will be displayed. For example, if cell is "11350" the city name "Flusing" will display. Message posted via DotNetMonster.com http://www.dotnetmonster.com/Uwe/Forums.aspx/asp net datagrid/200908/1
sorting on the gridview (4 replies)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
I have a datagrid on a page with 6 pages but having a sorting problem. It does sort when the column header is selected. But, when I go to another page by using the numbers in the bottom left corner of the grid, the sorting jumps back to the original order. Below is the code that is being used in C#. private string ConvertSortDirectionToSQL(SortDirection sortDirection) { string newSortDirection str...
how to calculate column index? (3 replies)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
I want to find where in my grid a column is if I know the fieldname. If the column "Course ID" is the #3 field in my grid (0..3), then I can extract the "Course ID" at RowDataBound using e.Row.Cells[courseid index].Text.ToString(); Obviously, courseid index has to be 3 to make this work. if Cells took the actual "id" such as ["Course ID"] as an index, then this exercise would be trivial as there i...
Read Datagrid Values (2 replies)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
I added the following column to my GridView: asp:TemplateField HeaderText "Quantity" HeaderStyle ForeColor "#C147B4" / ItemTemplate asp:TextBox ID "TextBox1" MaxLength "3" text ' %# DataBinder.Eval(Container,"DataItem.Quantity") % ' runat "server" Width "32px" EnableViewState "true" /asp:TextBox /ItemTemplate ItemStyle HorizontalAlign "Right" / /asp:TemplateField When user is meant to change the v...
Gridview inside gridview problem (2 replies)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
I have a gridview inside a gridview.The child gridview has a SQLDataSource with one parameter. I assign a value to this parameter in a RowDataBound event procedure of the parent gridview: string strIncID ((LinkButton)e.Row.Cells[0].Controls[1]).Text; sdsPersonExtV.SelectParameters["IncidentID"].DefaultValue strIncID; When debugging, I see that the parameter gets the correct values for every row. W...
BC30456: 'DataItem' is not a member of 'System.Web.UI.Control ... (2 replies)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
Hi, I have a gridview with an updatepanel in the itemtemplate. When I try to reference the container.dataitem from a control in the updatepanel then I get the the error BC30456: 'DataItem' is not a member of 'System.Web.UI.Control ... sample: asp:GridView ID "StudentMarksGridView" runat "server" AutoGenerateColumns "False" Columns asp:TemplateField HeaderText "MP1" HeaderTemplate asp:Label ID "Stu...
DataBinding with Gridview (2 replies)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
I have the following coding in my web form. var type (from p in entities.Address select p); this.GridView2.DataSource type; this.GridView2.DataBind(); Here in table Address I have one column named "Status" which is foreign Key. When I selected all the columns and try to bind with GridView it is not showing that column which is forign key. What is the reason. Thanks
Button in Gridview Footer as DefaultButton (2 replies)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
Hi there, I'm using a Gridview within an AJAX UpdatePanel. In the Gridviews Footer I've added some Textboxes and Dropdownlists to provide INSERT Functionlity to the Gridview. There's also a Button in the FooterRow having "INSERT" as CommandName invoking the InsertCommand of an SQLDataSource. Entering values in the Gridview's FooterRow and Clicking the Button successfully inserts a new Row in the D...
Response is not available in this context (2 replies)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
I added a gridview print routine to my dotnet 2 app. It works fine after googling why it didnt work for an hour or more. Since I got several grids on various pages I thought I would add it to my "constant class" which all my codebehinds have and I put all my common code in it. namespace Training { ... public class ConstClass { ... public void print(GridView gv, strFilename) { Response.Clear(); ..e...
Fix Header Datagrid in RTL (2 replies)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
i'm trying to fix the datagrid header in a RTL page. i'm using the following style: position:relative; top:expression(this.offsetParent.scrollTop); but it's not working cuz the header disappears when i use the scrollbar. how can i have a fixed header without adding a table in a seperate div that contains the header's data above the datagrid? can anyone please suggest how i can modify the CSS style...
How to format a column from datetime to string? (2 replies)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
After bind data from SQL server to a datagrid, I need to format data from SQL datetime format to string. That is, form "02/13/2008 0:00" to "02/13/2008". I knew how to conver it from SQL server but I need to convert in datagrid. Message posted via DotNetMonster.com http://www.dotnetmonster.com/Uwe/Forums.aspx/asp net datagrid/200908/1
how to run 2 application one of 1.1 and other of 2.0 framework on (2 replies)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
how to run 2 application one of 1.1 and other of 2.0 framework on same server.. In IIS two web Application are there one of 1.1 framework and other of 2.0 framework now issue is that when in web service extension of IIS if i allow both services to run then the v1.1 project wont run and if i prohibit v2.0 then it runs but project with v2.0 wont run plz let me know what to do?
grid view (2 replies)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
hi how to insert a new row to grid view while click a new button. do not choose data source to grid view control.
How to update Data grid automatically ? (2 replies)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
Hi, I have a data grid. Data source for a data grid is XML file. I want to update datagrid automatically when XML file changes. XML file is in the same project folder. Please let me know if you want more details. Thanks, Harsha.
Hyperlink in a gridview (5 replies)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
I have pdf file name as a value in DataTextField and am using an A Link as follows which works fine: asp:HyperLinkField DataNavigateUrlFormatString " a href {0} {0} /a " DataTextField "MovePDF" HeaderText "PDF" / I want to site the pdf files in a sub directory eg "Docs". How do I include that path? With thanks in advance.
Error: Object must implement IConvertible (4 replies)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
Hi there, I've a problem with a GridView and an Update Stored Procedure. When the Gridview is in EDIT Mode an I hit the Update Button, the error message "Object must implement IConvertible". The Stored Procedure itself works correctly (that was tested using Microsoft Management Studio). The Markup of der ASPX Page ist as follows. Does anyone have an idea, what to do? Thanks Michael ContentTemplate...
GridView Update Event Not Firing (2 replies)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
Hi. I have a strange behavior from GridView. When I click on "Edit", it goes in to the edit mode. After modifying the data, I click on the "Update", but the commandName is "New". I expected "Update". What am I missing here besides a little brain? Thanks. Be Cool.
Two Gridviews alongside each other (2 replies)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
I am trying to position two gridviews alongside each other on asp.Net page. What method should I use? Have tried asp:Table with not much success. With thanks
Populating DropDownList in DataGrid (6 replies)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
I have been searching through the groups for hours now I can't find a answer to this. Can someone tell me why the code below is not finding my drop down list in the data grid? ASPX: asp:DataGrid EditItemStyle BackColor "#ffffcc" ID "categoryGrid" Runat "server" Columns asp:EditCommandColumn EditText "Edit" UpdateText "Save" CancelText "Cancel" ButtonType "LinkButton"/ asp:BoundColumn HeaderText "C...
Edit on DataGrid having Problems with 1.1 Beta (4 replies)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
Ok, now the edit button on a DataGrid doesn't work all that well, if at all... I guess is like that Panel Trick for the Edit Column...NOT working....can't even get the Edit to come up with those textboxes for INLINE editing. Windows 2000 IE 5.5 ..NET Framework 1.1 beta laptop Dell 8200
Cancel does Delete instead!? (7 replies)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
I have created a datagrid with both EditCommandColumn and ButtonColumn (setup as Delete). Even when I change the Delete command to a different name "Remove", the "Cancel" button always ends up doing the 'Delete/Remove' subroutine :( What is happening with this? I searched on the net and only found one similar occurance, but no answer :( Surely it is a known problem..? Below is some of my code. Any...
Datagrid postback problem?!? (9 replies)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
I have a datagrid that works perfectly well. I have default paging turned on and this is where I have a small problem. My datagrid is created via the On Click even of my search button. When a user selects page 2 of the grid, for example, the grid disappears. If you press the search button again, page 2 of the grid will appear.....same for any page....click on page 3, grid disappears, click search,...
Would like to load a datagrid already in edit mode instead of having the user click the edit button (9 replies)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
Now my asp.net datagrid shows an edit button and clicking it puts the datagrid in edit mode. I would like to: 1) possilby load the page already in edit mode (implies some kind of OnLoad command to the datagrid to put it in edit mode before it is rendered and sent) and 2) have a button outside the datagrid to initiate edit, update , etc. that does not require the button to have a datagrid as the pa...
UserControl inside of datagrid - loses its viewstate when datagrid is re-bound on postback (8 replies, VIP)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
I have a simple usercontrol, a datepicker which contains 3 dropdownlist , it resides inside a datagrid column and i set the selecteddate property of the usercontrol from one of the DataBinder.Eval 's ... everythign works fine. The datepicker also works fine on a regular page, and will normally persist its viewstate on a page.postback event. However now i am trying to use it in a datagrid and runni...
Retrieving SelectedValue from DropDownList (8 replies, VIP)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
I have a few DropDownList controls used for new record entry in the footer of a datagrid and I want to limit the options available in one list based on what is selected in a previous list; I've seen examples of this where the DropDownLists are used in edit mode, but none for data entry mode. The footer cell for one column is defined as: FooterTemplate asp:DropDownList ID "cboWorkflowID" AutoPostBa...
How Do I Conditionally Remove An EditCommandColumn? (5 replies, VIP)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
Hi, I have a DataGrid control that "by default" comes up with an EditCommandColumn. However, I don't want all users to see this. How do I conditionally remove the EditCommandColumn? Thanks in advance for your help.
How can I display hashtable key values in a web page? (6 replies)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
Here is my first attempt at populating the hashtable. dim t as hashtable new hashtable() dim k as integer t.key dim v as integer t.value v 0 for k 1 to 200 on error goto bottom if t.count 50 then goto exit end if k int(rnd * 50) 1 v 1 t.add(k) :bottom next k :exit
trying to display header only (4 replies)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
I have a form with a datagrid control. And I have a button that will retrieve data and upon postback, the datagrid gets populated. What I would like to have is, upon the loading of the form (before postback), have the datagrid display the header with all the column headings. Right now, nothing is visible and the heading does not show unless the DataSource has at least one row. I tried the followin...
Annoyingly simple problem (5 replies, VIP)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
Hi. Could someone help me with this simple problem? I'm trying to open a new window from a HyperLink column in my datagrid. The definition of the column is as follows: asp:HyperLinkColumn Text "..." DataNavigateUrlField "master id account" DataNavigateUrlFormatString "javascript:NewBareWindow('/Accounts/Edit.aspx?masterIdAccount {0}', 'Account{0}', 750, 550);" /asp:HyperLinkColumn And this emits t...
Datagrid larger numbered pages not working (6 replies)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
I didn't recieve any information to help me before so I'm posting this again with edits... I have a datagrid that only shows 2 items per page. The page numbers appear at the bottome of each page for the user to page through the list. It shows 1 through 10 and the links for pages 1 through 10 work properly. After the "10" link there is a "..." link. If I click the "..." link I can see page numbers ...
Designer locking mdb file... (file and dir GRANTS FULL CONTROL FOR "EVERYONE") (6 replies, VIP)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
Here is an easy issue to reproduce: 1) Create a new project. 2) Drop a DataGrid control into the Page. Also drop a OleDbDataAdapter into the page. 3) Select "Configure Data Adapter..." and pick the NWind.mdb (for example). Go ahead and run through the wizard, selecting a table via sql query. Note that at the end of this a Nwind.ldb lock has been created in that dir. 4) Generate the Dataset and set...
When do I assign a SelectedIndexChanged event handler for DropDownLists inside a DataGrid? (4 replies)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
Hi, Remember my data bound DropDownList embedded in a TemplateColumn inside a data bound DataGrid? asp:DataGrid id "grdProducts" runat "server" DataSource " %# myPortfolio.Products % " AutoGenerateColumns "False" DataKeyField "Id" Columns asp:TemplateColumn HeaderText "Vendor" ItemTemplate asp:DropDownList id ddlVendor runat "server" DataValueField "Id" DataTextField "Name" DataSource " %# BL.Vend...
Newbie: Datagrid Comes Up Blank?!? (4 replies, VIP)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
Just trying to connect an ASP.NET page to an SQL database. When I run the page, I get no errors but no recordset results are returned via the datagrid control it is completely blank. The only thing displayed is the "Job Dispatch List" page title which executed as plain HTML. Code is as follows. Any ideas? %@ Import Namespace "System.Data" % %@ Import Namespace "System.Data.SqlClient" % HTML SCRIPT...
To Eliyahu (5 replies)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
"Build item template as a table with as many rows as you wish" Would you mind tell me how to build the item template table? I can only create a "Template Column" in Datagrid Property Builder Or any one can help me please
Dynamic EditCommandColumn events (6 replies)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
I have a page that creates multiple datagrids at runtime. I have no problem setting the object's properties and assigning the event handlers. The 'Edit' linkbutton sucessfully puts the appropriate record in edit mode, but the CancelCommand and UpdateCommand do not fire their assigned handlers. The 'Cancel' button ignores its assigned handler, and the 'Update' button fires the 'EditCommand' event. ...
assigning itemtemplate, edititemtemplate programmatically (4 replies, VIP)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
This really is a question for Datalist, since that is what I am primarily using; however it should apply to Datagrid as well. I would like to be able to assign the itemtemplate and edititemtemplate programmatically based on how the user would like the data layed out. I have been able to achieve this by using creating a class that implements the ITemplate interface, however I soon realized the draw...
populating a datagrid (6 replies, VIP)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
I have a datagrid with 2 item templates inside a hyperlink and a label (which will show the file name and creation date of files which resides on a folder on the server. I'm using a procedure (GetScannedFiles()) to loop and get the required information from the folder but don't know how to show this info inside my datagrid ( dynamically or from my aspx page). I appreciate any help. Look my code be...
AutoGenerateColumns - DataGrid Paging (4 replies, VIP)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
Hi, I am experiencing a problem with datagrid paging when I attempt to disable AutoGenerateColumns. My event handler for the pager will not fire, thus the paging does not occur. I really don't want to have to do 2 sql calls everytime someone wants to page which I have found will work ( removing the BindData only if not postback in the pageload function). Can anyone tell me if there is something I'...
Change/read value from control in EditItemTemplate (5 replies, VIP)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
Hi In my datagrid I have a textbox in an EditItemTemplate like so asp:TextBox id txtPrice ontextchanged "txtPrice TextChanged" runat "server" AutoPostBack "True" I also have back end code like this: Sub txtPrice TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Response.Write("BOING!") 'This won't get the textbox controls I need, what should I do? 'Dim txtPrice As TextBox MyD...
Pop-up Message Box (4 replies, VIP)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
Hi; I have a DataGrid called "dgEvents"; one of the columns in the DataGrid is a template column and it is a TextBox called "txtEndDate". So, on Page Load, this column has a textbox in every row of the datagrid and there is no data in the textbox. The number of rows in the datagrid changes according to the search criteria the user used. What I want to do is, if the user puts a value (Date) in the ...
Problems with paging. (4 replies)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
Hello! I have this strange thing happening here. I'm unavailable to use paging in my grid? I set the AllowPaging to True, and I placed a code into the PageIndexChanged. When I set a breakpoint into the PageIndexChanged it doesn't go there at all. Can anyone give me any idea of how to get the paging to work!!!!
Paging with Datagrid Control (5 replies)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
Hi all, I have met some problems in implementing paging with datagrid control. From what i know to do paging we must use sqlDataAdapter and dataset but I am using microsoft access database instead of SQL server as a result i cant use SqlDataAdapter and dataset to retrieve data from microsoft access. Anyone knows whether there is a way to do paging connected with access?Can i have the source code t...
_EditCommand not firing... (3 replies, VIP)
microsoft.public.dotnet.framework.aspnet.datagridcontrol
I realize this should be simple... but I'm at my wits end. I'm new to ASP.NET (.NET in general) but have many years experience with VB6. I have a very simple Datagrid with 2 columns bound to a datasource. I have a ButtonColumn in the grid (my grid is called grdShow). My code behind has a grdShow EditCommand() function which handles grdshow.EditCommand... but it doesn't fire when I click the Edit b...
Visit the archive for messages from this site.
  • June 2002 (42 items)
  • July 2002 (77 items)
  • August 2002 (61 items)
  • September 2002 (30 items)
  • October 2002 (56 items)
  • January 2003 (104 items)
  • February 2003 (44 items)
  • March 2003 (46 items)
  • June 2003 (39 items)
  • July 2003 (57 items)
  • November 2003 (71 items)
  • December 2003 (67 items)
  • January 2004 (93 items)
  • February 2004 (118 items)
  • March 2004 (136 items)
  • April 2004 (123 items)
  • May 2004 (115 items)
  • June 2004 (122 items)
  • July 2004 (73 items)
  • August 2004 (111 items)
  • September 2004 (72 items)
  • October 2004 (68 items)
  • November 2004 (11 items)
  • December 2004 (88 items)
  • January 2005 (95 items)
  • February 2005 (86 items)
  • March 2005 (83 items)
  • April 2005 (83 items)
  • May 2005 (59 items)
  • June 2005 (3 items)
  • October 2008 (2 items)
  • November 2008 (2 items)
  • December 2008 (1 item)
  • January 2009 (2 items)
  • March 2009 (4 items)
  • April 2009 (3 items)
  • May 2009 (4 items)
  • June 2009 (2 items)
  • July 2009 (1 item)
  • August 2009 (3 items)
  • September 2009 (1 item)
  • October 2009 (2 items)
  • November 2009 (3 items)
  • December 2009 (3 items)
  • January 2010 (1 item)
    Ad
    BootFX
    Reliable and powerful .NET application framework.
    iOS, Android and Windows Phone Development Training and Consultancy
    Hosted by RackSRV Communications
     
    Multimobile Development: Building Applications for any Smartphone
    Copyright © AMX Software Ltd 2008-2010. Portions copyright © Matthew Baxter-Reynolds 2001-2010. All rights reserved.
    Contact Us - Terms of Use - Privacy Policy - 4.0.30129.1734