I have two tables
tb_Rnd1
RndId(Pk) RndWood Rndlength RndWindth RndPNo RndConst RndCft
Tb_Rnd2
RndId(Fk) RndDate RndName RndTCft RndRCft RndTotalAmt
If I click btn_Add
Insert Records like this first
RndId(Pk) RndWood Rndlength RndWindth RndPNo RndConst RndCft
1 Teakwood 23 12 1 144
X
Tb_Rnd2
RndId(Fk) RndDate RndName RndTCft RndRCft RndTotalAmt
1 23/3/2011 asd
And ten I add detail and click btn_Add
RndId(Pk) RndWood Rndlength RndWindth RndPNo RndConst RndCft
1 Teakwood 23 12 1 144
X
1 Teakwood 45 34 2 120 Z=Y+X
Tb_Rnd2
RndId(Fk) RndDate RndName RndTCft RndRCft RndTotalAmt
1 23/3/2011 asd z 21 R value
This Detalis will be display list view
Like this
Rndlength RndWindth RndPNo RndConst RndCft
45 34 2 120 Z
23 12 1 144 X
Tb_Rnd2
RndDate RndName RndWood RndTCft RndRCft RndTotalAmt
23/3/2011 asd Teak Wood Z 21 R value
I want how will i write codings in C#
Advanced Thanks