ColIndex

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Hrvoje Voda

    ColIndex

    How do i get the number of current cell index?
    I'm trying to use CurrentCell.INd ex but it gives me -1!
    I would like to put an icon in second column header!

    Hrcko


  • Morten Wennevik

    #2
    Re: ColIndex

    Hi Hrvoje Voda,

    What CurrentCell are you talking about?
    The only one I am aware of is the DataGrid.Curren tCell which is a
    DataGridCell with a RowNumber and ColumnNumber property, but that one does
    not have an index property.


    On Thu, 27 Jan 2005 10:30:04 +0100, Hrvoje Voda <hrvoje.voda@lu atech.com>
    wrote:
    [color=blue]
    > How do i get the number of current cell index?
    > I'm trying to use CurrentCell.INd ex but it gives me -1!
    > I would like to put an icon in second column header!
    >
    > Hrcko
    >
    >[/color]



    --
    Happy Coding!
    Morten Wennevik [C# MVP]

    Comment

    • Hrvoje Voda

      #3
      Re: ColIndex

      OK. Then just a code that puts an icon that I want(imageList. Index) into
      grid header.

      For example.
      I fill an imageList with 3 icons.
      I would like to use an icon with index=0 and put in into grid.


      "Morten Wennevik" <MortenWennevik @hotmail.com> wrote in message
      news:opsk9aptjq klbvpo@pbn_comp uter...[color=blue]
      > Hi Hrvoje Voda,
      >
      > What CurrentCell are you talking about?
      > The only one I am aware of is the DataGrid.Curren tCell which is a
      > DataGridCell with a RowNumber and ColumnNumber property, but that one does
      > not have an index property.
      >
      >
      > On Thu, 27 Jan 2005 10:30:04 +0100, Hrvoje Voda <hrvoje.voda@lu atech.com>
      > wrote:
      >[color=green]
      >> How do i get the number of current cell index?
      >> I'm trying to use CurrentCell.INd ex but it gives me -1!
      >> I would like to put an icon in second column header!
      >>
      >> Hrcko
      >>
      >>[/color]
      >
      >
      >
      > --
      > Happy Coding!
      > Morten Wennevik [C# MVP][/color]


      Comment

      Working...