datagrid related

Hello all,

Plz help to rectify my code, its urgent

public class Form1 ///// class 1

{

form2.getProjectedtable();

}

public class Form2 //// class 2

{

getProjectedtable()

{

-------------- display a table in datagrid ----

}

Public class Form3 //// class 3

{

writing query like select * from table where abc>100 retrieves a row no

result taken passed to form2 to highlight the row

}

datagrid is displayed when I call from class 1

now datagrid is open . simultaneously, when I am trying to highlight a row in datagrid by passing rowno from Class 3. it shows that the row no so & so selected but do not highlight it

I dont know why it is like this

Plz help me in this regard

Anil Dhiman




Answer this question

datagrid related

  • tv_3

    Hello MrGenius,

    Thanks for replying,

    My problem is bit different. I am getting the row no from class three in class 2 but when I am trying to highlight that rowno using

    datagrid.select(rowno)

    in class 2

    it is giving me error like

    index out of bound I resolved this using datagrid.setbinding(dataset,"table");

    but still i am not able to highlight the row using Select method

    Help me in this regard

    Anil dhiman



  • christianacca

    Hi,

    Check the following link.

    http://www.intellectualbrains.com/articles/HighlightDataGridCell.aspx

    Hope this helps



  • xu.richard

    Check the selected style property of datagrid, n c whic value is loaded last whether ur class or grids style property.

  • edsouza

    Hello,

    could not resolve yet

    where is this property , I think if I am to select a row from class1 then I should be able to do the same from class 3 as well

    I am confused where I am wrong ,Do help me

    Thanks,

    Anil



  • datagrid related