WebGrid Community Server

Welcome to WebGrid Community Server Sign in | Join | Help
in Search

Grid DataBind not work correctly for OnRowClick

Last post 08-01-2008, 19:47 by admin. 3 replies.
Sort Posts: Previous Next
  •  07-31-2008, 16:33 704

    Grid DataBind not work correctly for OnRowClick

    If OnRowClick method is used then filling of Grid's rows from oledb provider using dataset does not work.

    When debugging then after code:
    Grid1.SetDataSource(ds.Tables[0]);
    Grid1.DataBind();

    following watches return:
    Grid1.DefaultTable.Rows[0]["Leading"].Value  = ""
    ds.Tables[0].Rows[0]["Leading"].ToString() = "AAA"

    If the same code is called by other method then OnRowClick then those 2 values are equal.


  •  07-31-2008, 19:42 705 in reply to 704

    Re: Grid DataBind not work correctly for OnRowClick

    Try 'Grid1.ReLoadData= true'

    Olav Botterli, WebGrid Founding Developer
  •  08-01-2008, 9:12 706 in reply to 705

    Re: Grid DataBind not work correctly for OnRowClick

    Does not help. It looks while beeing inside OnRowClick event the values do not refresh. When I check content of grid rows from any other event (like PreRender of any control on the page which is occuring later) I get the values in rows ok.
  •  08-01-2008, 19:47 707 in reply to 706

    Re: Grid DataBind not work correctly for OnRowClick

    Can you send me an zipped project that are fully functional on my local computer. And I will look at it and I will look at it when I get time.



    Olav Botterli, WebGrid Founding Developer
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems