locked
Disable the default row selection in xamDataGrid RRS feed

  • Question

  • Hi All,

    I am using XamDataGrid in my application.

    when i bind it by default it selects the first record of collection in data grid.

    i need to stop default binding.

    There should be no row which is selected by default at the time of loading.

     


    Happy Coding & Regards, Ashish
    • Moved by Sheldon _Xiao Thursday, February 9, 2012 1:40 AM (From:Windows Presentation Foundation (WPF))
    Thursday, February 2, 2012 4:19 PM

All replies

  • I think you need to set IsSynchronizedWithCurrentItem="False"

    I believe it is set to True by default.

     

    Also, depending on your code, you could try datagrid.ClearSelection();

     

    Hope that fixes it for you!

     

    Regards,
    Pedro


    If you find my post helpful, please remember to "Mark As Answer" AND/or "Mark as Helpful"
    Thursday, February 2, 2012 4:47 PM
  • First of all thanks for the quick reply dear.

    I tried with IsSynchronizedWithCurrentItem = False

    But it stops the selection of the records for all the records.

    Actually we want to stop the DefaultSelection which is done by default.

    The first row is by default selected which we want to stop,

    So when user clicks on first record it should call our changed methods which is not working rite now.

    please reply asap.


    Happy Coding & Regards, Ashish
    Friday, February 3, 2012 5:48 AM
  • Hi ashishjoshi.007,

    As for XamDataGrid control's issue, you could post it on Infagistics forum to get the answer, the link is:

    http://forums.infragistics.com/forums/141.aspx

    Your issue is relative to third party control, and it is beyond our support scope, thank you for your understanding.

     

    Best regards,


    Sheldon _Xiao[MSFT]
    MSDN Community Support | Feedback to us
    Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, February 6, 2012 5:55 AM
  • Hi All

    I have uploaded the same question on below link of ingragistic as well..

    http://forums.infragistics.com/forums/p/65365/330996.aspx#330996


    Happy Coding & Regards, Ashish

    Wednesday, February 8, 2012 9:41 AM