Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: ISPrincess
  • Content: Threads
  • Order by date
  1. ISPrincess

    Datagrid Textbox and Javascript syntax problem

    I can fill in the text box within the grid in javascript with this: document.getElementById('datagrid1_0_isSelected').value = '1'; So how can i do it by NOT hardcoding the index ( i am sure my syntax is incorrect): document.getElementById('datagrid1_' + SRow.itemIndex +...
  2. ISPrincess

    Cant get color set in HTML Javascript

    I have posted this in asp.net forum also, but since it involves Java, I wanted to put it here also. In Server VB: If dgMoves.Items(i).BackColor.Equals(System.Drawing.Color.LightSteelBlue) Then SetAlertMessage("Selected: " & i) End If never equates to TRUE. In server...
  3. ISPrincess

    What is BackColor of Selected Row?

    Is there a way to get the backcolor of a row in server code? When the user clicks a button (say Process), then i need to loop thru the grid and capture the backcolor of each row in order to do something. cannot write the following: If dgGrid.items.item(i).backcolor = "Red" then...
  4. ISPrincess

    MouseDown, MouseUp, Mouseout events

    Here is the background: I have a datagrid in which i am programming client side events to enable multi-select or at least multi-highlighting. Server side I added these 2 events in the Row_Databound event of the grid: e.Item.Attributes.Add("OnClick", "HighlightRow( this );")...
  5. ISPrincess

    Hghtlight Datagrid Row syntax error

    In the RowDataBound event of my Datagrid, I have the following line of code: e.Item.Attributes.Add("OnClick", "HighlightRow( this );") in the HEAD of the page I have the following JS: function HighlightRow(SRow) { var oItem = SRow.style.backgroundColor; if(oItem != 'LightSteelBlue')...
  6. ISPrincess

    Select Top X in Stored Procedure

    Is there some way to pass in the number of records to return to a stored procedure and then use that variable to return TOP X from table? ie: @iHowmanyrecs integer as Select Top @iHowManyRecs from MyTable or will I need to build a dynamic SQL string and then exec it? PH I was walking home...
  7. ISPrincess

    Stored Procedure Name from within stored proc

    I have the need to insert the name of the stored proc doing the insert into a table, but would like to make the code alittle more reusable. so rather than Insert into mytable (ProcessName) values('spThisStoredProcName') I was hoping there was a way to get that from within the stored...
  8. ISPrincess

    Datagrid with Select Checkbox in DIV tag problem

    I have a datagrid that contains Checkboxes to allow the user to 'Select' a row. The datagrid is contained within DIV tags. I would like to call dgGrid_CheckChanged when the checkbox is checked or unchecked in order to highlight the row as a selected item. This works fine, until the user has...
  9. ISPrincess

    Datagrid with Select Checkbox in DIV tag problem

    I have a Datagrid that contains CheckBoxes to allow the user to 'Select' a row. The datagrid is contained within DIV Tags. I would like to call dgGrid_CheckChanged when the checkbox is checked or unchecked to highlight the row as a selected item. This works fine, until the user has scrolled...
  10. ISPrincess

    Datalist in Datagrid

    I have imbedded a datalist control in my Datagrid. This datalist is made up of Linkbuttons. HTML Below. (sorry about the formatting) <asp:templatecolumn headertext="From Facility"> <ItemTemplate> <asp:datalist id="dlFacilities" Runat="server" BorderColor="#CC9966"...
  11. ISPrincess

    Trap for Shift key press

    Can anyone guide me in this? I would like to trap for Shift Key Press on my aspx page. I have a datagrid that allows for multiple selections (dont think it's important how that is handled at this point). Say the user selects the first item, the presses the shift key and selects the 5th item...
  12. ISPrincess

    Imbedded Datalist in DBauer Hierargrid Control.

    I have successfully implemented Denis Bauer's Hierargrid for imbedding a datagrid within a datagrid it works great. My new problem is that I must imbed a datalist as the child control inside the Hierargrid now in order to use it's Horizontal Repeater. I can not seem to cast the datagrid item...
  13. ISPrincess

    Microsoft DataSetHelper Class

    Does anyone have experience with Microsofts DataSetHelper Class? I have successfully implemented that method SelectGroupByInto when returning one field and grouping on that field, but when I attempted to return table with 2 fields grouped on the same 2 fields, I get an error withing the class...
  14. ISPrincess

    User Control to same Page Multiple times

    I have a need to create datagrids (same one/same type of data/3 cols) on a page multiple times (indefinetely). I thought I would start with a user control page with the datagrid on it and then add it to the page each time i need to, but not sure this is the way to go. As a side-note, each grid...
  15. ISPrincess

    Datagrid: Expanding Row Display

    I have a datagrid that will display about 5 columns with One row each in an ItemTemplate. Here is a sample of the first column: <ItemTemplate> <% databinder.eval(container.dataitem "InfoField") %> </ItemTemplate> I have a + sign that when clicked, I would like to expand that row to show...
  16. ISPrincess

    Datagrid CompareValidator or Javascript alert

    I am having a major issue getting a working CompareValidator into Datagrid. Here is some background Say i have a grid with 3 columns. Column1 = ItemNo Column2 = TotalNumber Column3 = AvailableNumber The only editable (textbox) column is AvailableNumber. I have a working...
  17. ISPrincess

    Open all rows for editing in Datagrid

    I know there is an easy answer to this, I am still a newbie though. I have one datagrid - dgSecurity that is called upon clicking the detail button of the main data grid row - dgUsers. above the dgSecurity grid - I have Edit/save/cancel buttons. In other words - I do not want the grid to...
  18. ISPrincess

    datagrid error: Invalid CurrentPageIndex value. It must be &gt;= 0 and &lt;

    I knew it was too good to be true. I have a datagrid that i just implemented Datapaging on - and that worked just swell, until..... You delete the only record on the last page. Say I have 6 rows in my datagrid and my pagesize is set to 5. If I page to the row #6 (2nd page) and click on...
  19. ISPrincess

    Datagrid: Disallow Row Editing based on Value of Cell

    I need to disallow editing on a datagrid based on some value in one of the cells. Here is some background. I have a datagrid, that has edit and delete buttons for each row. When the click the Edit, the column changes to Update / Cancel buttons. Everything so far is fine with that. One of the...
  20. ISPrincess

    Dynamically creating Datagrids

    I have the need to create multiple datagrids based on a table returned in a dataset. Dataset.table Group# Value1 Value2 1 1 x 1 2 y 1 3 z 2 4 x 2 5 y 2 6 z In the above case, I...

Part and Inventory Search

Back
Top