in
Forums
Blogs
Files
Devexpress.Com
Client Center
Support Center
DevExpress Channel

Selecting Rows in gridview from database

Last post 9/26/2007 6:03 AM by Plato (Developer Express). 1 replies.
Page 1 of 1 (2 items)
Sort Posts:
Previous Next
  • 9/25/2007 10:39 AM

    Selecting Rows in gridview from database

    Hi all,

    Actually I'm using in the event HtmlRowCreated something like the code below to select in the gridview the values with the field SELECTED=1,
    I want to know if is there a better way to do this. I was looking for a FIELD property in the Command Column or something like that,
    Any suggestion ?

    thnks!

    If

    e.GetValue("SELECTED") = 1 Then
          gvCompany.Selection.SelectRowByKey(e.GetValue("TABLEKEY"))
    Else
          gvCompany.Selection.UnselectRowByKey(e.GetValue("TABLEKEY"))
    End If
  • 9/26/2007 6:03 AM In reply to

    Re: Selecting Rows in gridview from database

    Hi,

    I have answered your question at: 

    www.devexpress.com/issue=Q21101 

    Thanks,

    Plato

    Thanks,

    Plato

    Developer Express Support
Page 1 of 1 (2 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED