Results 1 to 2 of 2

Thread: .net datagrid problem. Help!!!

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2001
    Posts
    7

    .net datagrid problem. Help!!!

    I have written a dataset into a datagrid, when I click on a row in the datagrid I want to find the row and column number.

    When I click on a row in the grid I trigger the CurrentCellChanged event and run the following two lines of code.

    Dim colNum As Integer = DataGrid1.CurrentCell.ColumnNumber
    Dim rowNum As Integer = DataGrid1.CurrentCell.RowNumber

    The problem I have is that colNum and RowNum are passing back hexidecimal values that look like '&H3'..

    Can anyone tell me why I am not just getting back plain integers?

  2. #2

    Thread Starter
    New Member
    Join Date
    Dec 2001
    Posts
    7

    Wink

    Figured it out.

    There is a button in the tool bar within the debug tools which is called Hex. This returns all results as hexidecimal values while in debug mode. I just switched it off..

    Hope this helps someone one day. Or am I just a fool?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width