DataGrid Error Icon not appearing

Discussion in 'ASP .Net Datagrid Control' started by Evil Joe, Jan 10, 2006.

  1. Evil Joe

    Evil Joe Guest

    I have an Asp.net application that allows someone to load a datagrid
    from an Excel Spreadsheet and then validate the contents of the
    datagrid.

    I was validating the grid by checking the rows and setting the
    SetColumnError and RowError properties of the data table row where
    appropriate. But, when I bind the datatable to the grid the Error
    Icons don't show up on the page. Is this a Windows Form feature only?
    I have been searching everywhere for a tip but have not located
    anything... :(

    Code
    ====
    For Each drRow In dsSSheet.Tables("Sheet1").Rows


    If Not IsValid(drRow) Then

    drRow.SetColumnError(0, "Bunny Fluff not found")
    drRow.RowError = "Policy Type is invalid"

    End If
    Next

    dgResults.DataSource = dsSSheet.Tables("Sheet1")
    dgResults.DataBind()
     
    Evil Joe, Jan 10, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Miro Durcik

    app.rc resource's icon to .net Icon

    Miro Durcik, Oct 9, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    1,403
    Miro Durcik
    Oct 9, 2004
  2. Dan Polansky
    Replies:
    3
    Views:
    817
    Larry Barowski
    Feb 12, 2007
  3. jmhmaine
    Replies:
    0
    Views:
    293
    jmhmaine
    Jan 20, 2005
  4. jmhmaine
    Replies:
    2
    Views:
    311
    Steven Cheng[MSFT]
    Jan 21, 2005
  5. Bodi
    Replies:
    1
    Views:
    292
    Lasse Reichstein Nielsen
    Nov 18, 2003
Loading...

Share This Page