Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
H

harvid

@harvid
About
Posts
16
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Remove a XMLnode - Pls help
    H harvid

    Thank you so much. I will try this.

    XML / XSL xml help

  • Remove a XMLnode - Pls help
    H harvid

    Hello, Below is my XML document. FP108MR 0 Z9999 I need to remove only node so that my xml document remains as below. FP108MR 0 Z9999 I used the following code to convert Dataset to a XMLdocument. Dim dtCounter As New DataSet("GetCountsResult") oDatabase.Connect() oDatabase.PopulateDataSet("Count", "Get_Current_Counter", True, dtCounter) Dim sw As New StringWriter dtCounter.WriteXml(sw, XmlWriteMode.IgnoreSchema) Dim xmldoc As New XmlDocument xmldoc.LoadXml(sw.ToString()) Please help me in getting this. Thanks.

    XML / XSL xml help

  • Datagridview cell not updating in Windows 2008 SP2 server
    H harvid

    Thanks Pete and Luc. I'm done with the changes as you suggested.

    Windows Forms sysadmin

  • Datagridview cell not updating in Windows 2008 SP2 server
    H harvid

    If dgEditor.Columns(e.ColumnIndex).Name = "Status" Then If dgEditor.Rows(e.RowIndex).Cells("Status").Value = "NEW" Then 'if already marked as new, leave it alone If IsDBNull(dgEditor.Rows(e.RowIndex).Cells("CommonLineName").Value) Then Else If dgEditor.Rows(e.RowIndex).Cells("CommonLineName").Value <> "" Then e.CellStyle.SelectionForeColor = Color.DarkGreen e.CellStyle.ForeColor = Color.DarkGreen e.CellStyle.BackColor = Color.Orange e.CellStyle.SelectionBackColor = Color.Orange End If End If Else If dgEditor.Rows(e.RowIndex).Cells("UsedFlag").Value = 1 Then dgEditor.Rows(e.RowIndex).Cells("Status").Value = "Used" e.CellStyle.BackColor = Color.LightGreen e.CellStyle.SelectionBackColor = Color.LightGreen e.CellStyle.SelectionForeColor = Color.Black Else If dgEditor.Rows(e.RowIndex).Cells("ExpiredFlag").Value = 1 Then If dgEditor.Rows(e.RowIndex).Cells("ApprovedFlag").Value = 1 Then dgEditor.Rows(e.RowIndex).Cells("Status").Value = "UnUsed" 'approved expired e.CellStyle.BackColor = Color.LightGray e.CellStyle.SelectionBackColor = Color.LightGray Else If dgEditor.Rows(e.RowIndex).Cells("RejectedFlag").Value = 1 Then dgEditor.Rows(e.RowIndex).Cells("Status").Value = "Expired" 'Rejected expired e.CellStyle.BackColor = Color.LightCoral e.CellStyle.SelectionBackColor = Color.LightCoral Else dgEditor.Rows(e.RowIndex).Cells("Status").Value = "Expired" 'pure expired - never approved and never rejected e.CellStyle.BackColor = Color.Gray e.CellStyle.SelectionBackColor = Color.Gray End If End If Else If dgEditor.Rows(e.RowIndex).Cells("RejectedFlag").Value = 1 Then

    Windows Forms sysadmin

  • Datagridview cell not updating in Windows 2008 SP2 server
    H harvid

    Please let me know if there are any steps to overcome it.? I will need to set the Color for "status" column.

    Windows Forms sysadmin

  • Datagridview cell not updating in Windows 2008 SP2 server
    H harvid

    Hello Pete, I tried to debug the code in the server after installing Visual studio. I'm getting the below error in Cell_formatting event in this line dgEditor.Rows(e.RowIndex).Cells("Status").Value = "Used" e.CellStyle.BackColor = Color.LightGreen e.CellStyle.SelectionBackColor = Color.LightGreen e.CellStyle.SelectionForeColor = Color.Black ERROR: An unhandled exception of type 'System.StackOverflowException' occurred in System.Windows.Forms.dll {Unable to evaluate expression.} I have made a check below, but it is partly working and not updating "Status" column and coloring, If e.Value Is Nothing Then Exit Sub End If Is there anyway i can mimic this issue? Please help. I can also paste my Cell_formating code if you want to look at it.

    Windows Forms sysadmin

  • Datagridview cell not updating in Windows 2008 SP2 server
    H harvid

    Could you please let me know the steps to do this?

    Windows Forms sysadmin

  • Datagridview cell not updating in Windows 2008 SP2 server
    H harvid

    Hello Pete, Pls find the details below. ColumnName DataType Length Nullable -------------------------------------------------------- ApprovedFlag int 4 no ApprovedDateTime datetime 8 yes ApprovedBy varchar 30 yes LastModifiedBy varchar 30 yes LastModifiedDateTime datetime 8 yes

    Windows Forms sysadmin

  • Datagridview cell not updating in Windows 2008 SP2 server
    H harvid

    DataGridView1.Item("ApprovedDateTime", e.RowIndex).Value = Now() DataGridView1.Item("ApprovedBy", e.RowIndex).Value = Username But the same code works fine for below columns DataGridView1.Rows(e.RowIndex).Cells("LastModifiedBy").Value = Username DataGridView1.Rows(e.RowIndex).Cells("LastModifiedDateTime").Value = Now() I tried to mimic the Null reference error, by replacing the first two lines with the below lines DataGridView1.Item("ApprovedDateTime", e.RowIndex).Value = now() DataGridView1.Item("ApprovedBy", e.RowIndex).Value = username even now also, i'm experiencing same issue and Application got crashed.

    Windows Forms sysadmin

  • Datagridview cell not updating in Windows 2008 SP2 server
    H harvid

    Yes Pete. Its a DateTime column.

    Windows Forms sysadmin

  • Datagridview cell not updating in Windows 2008 SP2 server
    H harvid

    Hello, I'm using a Datagridview in Windows application. Its working fine in my local machine, but when i tried to execute in my server( Winodws 2008 SP2), few columns not updating with the value using the below statement. DataGridView1.Rows(e.RowIndex).Cells("ApprovedBy").Value = "UserName" DataGridView1.Rows(e.RowIndex).Cells("ApprovedDateTime").Value = Now() Can anyone suggest a solution for this. Please!!. Thanks

    Windows Forms sysadmin

  • Hanlde Event when C# exe is aborted abruptly
    H harvid

    Hi Dave,Paul and originSH, Thanks a lot for your comments. Let me explain my actual scenario, I have a C# Windows EXE which will call my Webserive hosted in another Webserver asynchronously. We have an UI interface which will call the above mentioned C# Windows EXE. when EXE gets abruptly aborted from UI Interface, my webservice still running in webserver machine. Any options or methods to stop my webservice when my EXE stops abruptly? Pls help me out. Thx Vidh

    C# csharp question

  • Hanlde Event when C# exe is aborted abruptly
    H harvid

    Hi all, I have a windows C# EXE. In most cases, it will be killed abruptly from TaskManager (its session will be killed). Is there any Event in C# to handle those abruptly closing of EXE? Need in urgent. Thanx in advance vidh

    C# csharp question

  • Open and Write in Console window
    H harvid

    Hi Neo, Thx a lot for timely help .. It works fine... :) Vidhya

    C# csharp help

  • Open and Write in Console window
    H harvid

    Hi Rahul.. I tried . Thx... But i need to write into Console window thru Win exe Code also Could u pls help Vidhya -- modified at 6:15 Thursday 8th March, 2007

    C# csharp help

  • Open and Write in Console window
    H harvid

    Hi all, I have developed C#.net Windows Application and I've to open and write in Console window thru my Windows application. Pls help me to resolve this issue. Thx in Advance Vidhya

    C# csharp help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups