austin
01-02-2005, 10:52 AM
hai there
so let me tell u what i am actually
trying to do......
i have two tables,both are related
so when i am clicking on the row of
parent table i want my application to
show the child table details......
so the problem i am facing is i am
finding no event related to the grid
click
but there is some thing i know there
is a property ... of grid
SELECTINDEX ....
-------------------------------
code:in c#
----------------------------------
Datagridname.Item[Datagridname.Select
Index].Cell[3].Text.Trim
------------------------------------
using this i can retive the value of any element of the selected row of the tabel
and one more thing i know
-------------------------------
code:in c#
in the event handler of any button
----------------------------------
Datagridname.SelctIndex++;
------------------------------------
the above code will make the next row
in the grid as selected one
but the problem is that in such
manner u need to move rows one by one
so all i want to set
Datagridname.SelctIndex=
to the currently clicked row....
can you help.........
thanking all
austin
so let me tell u what i am actually
trying to do......
i have two tables,both are related
so when i am clicking on the row of
parent table i want my application to
show the child table details......
so the problem i am facing is i am
finding no event related to the grid
click
but there is some thing i know there
is a property ... of grid
SELECTINDEX ....
-------------------------------
code:in c#
----------------------------------
Datagridname.Item[Datagridname.Select
Index].Cell[3].Text.Trim
------------------------------------
using this i can retive the value of any element of the selected row of the tabel
and one more thing i know
-------------------------------
code:in c#
in the event handler of any button
----------------------------------
Datagridname.SelctIndex++;
------------------------------------
the above code will make the next row
in the grid as selected one
but the problem is that in such
manner u need to move rows one by one
so all i want to set
Datagridname.SelctIndex=
to the currently clicked row....
can you help.........
thanking all
austin