This is a migrated thread and some comments may be shown as answers.

Complete values before insert a record

1 Answer 28 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sami
Top achievements
Rank 2
Iron
Iron
Iron
Sami asked on 08 Aug 2013, 12:10 AM
Hi
I have an ASP.Net application with two RadGrids. The first grid contains the master table, and the second grid contains the details table. I need to insert new records in the second grid (details), but how can I set the foreign key to the record to be insert? And I need to complete some values in the record that doesn´t appear as a column in the grid, how can I do that? Can you help me?

Thanks in advanced...
Sami

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 08 Aug 2013, 04:40 AM
Hi Sami,

I'm not clear about your requirement,by two radgrids you mean Hierarchy I guess.To insert values into the detail table,you can set the foreign key in the ParentTableRelation of the radgrid.Please check this demo on Grid - Declarative Relations or Grid - Programmatic Binding.
Then i guess you want to enter values for column that are not seen in view mode,one option is to make them bound column,and set their Display="false",these will be seen in edit or insert mode for you to enter the values,but will be invisible in view mode.
Please let me know if any concern.

Thanks,
Princy

Tags
Grid
Asked by
Sami
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Princy
Top achievements
Rank 2
Share this question
or