Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 688581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T02:14:40+00:00 2026-05-14T02:14:40+00:00

In past, I am using Listview and using below code can show a particular

  • 0

In past, I am using Listview and using below code can show a particular image for particular memId. But now I need to replace listview with Infragistics.Win.UltraWinGrid
problem arise how i show image for ultragrid.

 For Each LItem As ListViewItem In Me.dvParticipants.Items
            If CInt(LItem.SubItems(2).Text) = memid Then
                LItem.ImageIndex = imageindex
            End If
        Next

Please suggest.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T02:14:40+00:00Added an answer on May 14, 2026 at 2:14 am

    I think you will want to set an image for a specific column of your grid. I would do this in InitializeRow event of the grid. Here is a sample:

    Private Sub ugGrid_InitializeRow(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid.InitializeRowEventArgs) Handles ugGrid.InitializeRow
    
        'pull the image from a resource'
        Dim exclamationIcon As Bitmap = My.Resources.Exclamation_Icon_15x15
        exclamationIcon.Tag = EXCLAMATION_ICON_TAG
    
        'get the data source of the row, I only want this image to appear under certain'
        'conditions    '
    
        Dim actualHist As ActualHistory = DirectCast(e.Row.ListObject, HistoryRow).ActualHistory
        If Not IsNothing(actualHist) AndAlso actualHist.IsEligible(actualProdHist) Then
            'here the condition is met, set the image on the correct column, the one'
            ' with key of "Descriptor"'
            e.Row.Cells("Descriptor").Appearance.Image = exclamationIcon
            e.Row.Cells("Descriptor").Appearance.ImageHAlign = HAlign.Right
        Else
            e.Row.Cells("Descriptor").Appearance.Image = Nothing
        End If
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i need a three columns form, in the past using tables was easy but
I've done this in the past using a method similar to this: http://javascriptkit.com/javatutors/static3.shtml but
I've successfully created Ruby-C++ bindings in the past using SWIG where the C++ code
I've been using ReSharper for the past months and, advertising aside, I can't see
I have used ELMAH in the past using an hMailServer, but unfortunately, I am
From past 4 months am doing automation testing using Selenium RC . But recently
I've written lots of Excel macros in the past using the following development process:
In the past few years of using svn, I've frequently run into problems where
In my past projects I've been using webform to implement windows form style complicated
For the past few years I have been using Gary Keith's browscap file to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.