Search

You searched for the word(s): userid:104485

Matching Posts

  • Re: Creating a reminder/TO DO module

    Thanks for the update, but I was looking at pulling single values from several tables and compiling the results to a datalist. Scott's tutorial shows how to create a single To Do db using Ajax. Thanks again.
    Posted to Data Presentation Controls (Forum) by kenk on 1/15/2007
  • Creating a reminder/TO DO module

    Looking for the best practice on creating a reminder module. I'd like to have a table with pre-defined questions that query multiple tables. Your last timecard was entered on 01/20/2006 - SELECT Max(Date) from employee where EID=xx group by... You have [xx] pending time off requests - SELECT count(ID) from employee_to where eid=xx group by... Your auto insurance expires 04/01/2007 - SELECT autoexp from employee where eid=xx I'm thinking a datalist would be the best option but not sure on combining
    Posted to Data Presentation Controls (Forum) by kenk on 1/12/2007
  • Re: datagrid row color

    Thanks for the response. The ItemDataBound event is firing, but I'm not doing in-line datagrid editing. I'm updating the datagrid from a form and re-binding the datagrid, so there is no 'e' argument (System.Web.WebControls.DataGridItemEventArgs) when ItemDataBound event is called. I've created a dataset from 3 queries, storing it in session variables and binding it to the datagrid. I'm avoiding in-line datagrid editing for validation purposes. Thanks again.
    Posted to Web Forms (Forum) by kenk on 12/28/2006
  • datagrid row color

    I want to change the row color in a datagrid that matches certain criteria. However, I'm NOT using in-line editing where the ItemDataBound event would normally take care of this. The following works fine on the initial load but not after I update the data. Select Case e.Item.ItemType Case ListItemType.AlternatingItem, ListItemType.Item If CType (e.Item.FindControl( "lblType" ), Label).Text = "Holiday" Then e.Item.BackColor = System.Drawing.Color.LightBlue End If End Select On the ItemCommand event
    Posted to Web Forms (Forum) by kenk on 12/27/2006
  • Re: datagrid row colors after update

    Thanks for the reply rexlin. I'm not sure I understand the prerender event. I'm populating the datagrid from 3 datasets and manipulating it in the datagrid with a session variable. When I edit a selected row using inline editing the totals and row colors work fine. However, I'd like to copy the selected row to a form, modifiy the data, and then send it back to the datagrid. I'm assigning the form fields to the dynamic table and rebinding it to the datagrid which works fine and I'm seeing the _ItemBound
    Posted to Data Presentation Controls (Forum) by kenk on 12/19/2006
  • datagrid row colors after update

    Within the _ItemDataBound event I have the following; 1 Select Case e.Item.ItemType 2 Case ListItemType.AlternatingItem, ListItemType.Item 3 Dim item1 As Label = e.Item.FindControl( "lblHours" ) 4 Regular += Val(item1.Text) 5 If CType (e.Item.FindControl( "lblType" ), Label).Text = "Holiday" Then 6 e.Item.BackColor = System.Drawing.Color.Yellow 7 Dim item2 As Label = e.Item.FindControl( "lblTOH" ) 8 Holiday += Val(item2.Text) 9 End If After I update the datagrid and rebind, the data shows correctly
    Posted to Data Presentation Controls (Forum) by kenk on 12/18/2006
  • Showing datagrid totals after update

    Instead of using inline editing for the datagrid I decided to take the grid data and send it to a form, update the information and send it back to the datagrid. The problem I'm having is that the datagrid total information is not getting updated. Project: Timecard module Loading Holiday and requested time off ds and merging them to a third dataset. Sending the new dataset to a session variable and using that to view/edit the datagrid. 1 <%@ Page Language= "vb" AutoEventWireup= "false" Codebehind
    Posted to Data Presentation Controls (Forum) by kenk on 12/15/2006
  • Re: Update dynamic datagrid

    Could you elaborate? dv=session("Hours") or ds=session("Hours") ' I'll store the dataset in the session variable, not the dataview. dim txtHours as texbox = e.Item.FindControl("lblHours") ds.Tables(0).Rows.Item("Hours") = txtHours.Text ' (Item is read-only) Thanks Rick
    Posted to Data Presentation Controls (Forum) by kenk on 11/1/2006
  • Update dynamic datagrid

    dv = dataview ds1 = dataset 'Holdiays ds2 = dataset 'Vacation Requests ds1.merge(ds2) If Not FoundExistingDate Then 'Add timecard data for rest of week objDR = ds1.Tables(0).NewRow objDR("Date")=... ds1.tables(0).Rows.Add(objDR) dv = ds1.Tables(0).DefaultView dv.Sort = "Date" Session("Hours") = ds1.Tables(0).DefaultView dgTimecard.DataSource = dv dgTimecard.DataBind() Private Sub dgTimecard_UpdateCommand( ByVal... Dim txtDate As TextBox = e.Item.FindControl
    Posted to Data Presentation Controls (Forum) by kenk on 11/1/2006
  • Populating DropDownList

    I have 14 dropdownlist boxes on a web form that are populated with the following code; Start1.DataSource = objEmployee.GetTimeList 'objEmployee is a dataset Start1.DataTextField = "strTime" Start1.DataValueField = "valTime" Start1.DataBind() Start2.DataSource = ... Is there a better way to populate the dropdownlist box other then calling the dataset each time? Would XML or ArrayList be better? How about populating all 14 controls, could this be done in a loop? Thanks
Page 1 of 4 (40 items) 1 2 3 4 Next >