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
  1. Home
  2. Mobile Development
  3. Mobile
  4. DataGrid SelectedIndexChanged method not avaiolable in Compact Framework

DataGrid SelectedIndexChanged method not avaiolable in Compact Framework

Scheduled Pinned Locked Moved Mobile
csharpcsshelpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Paulo Mitchell
    wrote on last edited by
    #1

    This question was originally posted in the c# forum in error. I have an application running on a PDA (Windows Mobile 6.1)that currently uses the OnClick Event of a DataGrid to perform some functionality. I would like to have the same functionality run when the current row of my DataGrid is highlighted (by the user scrolling to it using the navigation button instead of tapping on it with the stylus). The method to use would seem to be OnSelectedIndexChanged but this does not seem to be available in the Compact Framework (3.5). The OnGotFocus doesn't seem to be suitable either (I guesss that this is because it applies to the DataGrid itself and not the row). Can anyone suggest how I can get this to work. Note that I only want the event to fire when the user moves to the row and not when the grid is being populated. Thanks

    R 1 Reply Last reply
    0
    • P Paulo Mitchell

      This question was originally posted in the c# forum in error. I have an application running on a PDA (Windows Mobile 6.1)that currently uses the OnClick Event of a DataGrid to perform some functionality. I would like to have the same functionality run when the current row of my DataGrid is highlighted (by the user scrolling to it using the navigation button instead of tapping on it with the stylus). The method to use would seem to be OnSelectedIndexChanged but this does not seem to be available in the Compact Framework (3.5). The OnGotFocus doesn't seem to be suitable either (I guesss that this is because it applies to the DataGrid itself and not the row). Can anyone suggest how I can get this to work. Note that I only want the event to fire when the user moves to the row and not when the grid is being populated. Thanks

      R Offline
      R Offline
      Rajendra Padhiyar
      wrote on last edited by
      #2

      You can use "CurrentCellChanged" event and in this event you can check the myGrid.CurrentCell.ColumnNumber or RowNumber and perform your task.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

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