Hi all,
For example I have a Procedure in Sql server that return record of Employee tables.In this table has a foreign key of Section table(Emp_FK_Sec_ID(in Section tabled named=Sec_ID)).
In my Procedure has a column that returned name of Section(Sec_Name by using Emp_FK_Sec_ID).
And this procedure Set to DataSource of RadGridView.
I added a Button Column to grid For Insert Or Update Employee table.What is important for this,Insert or Update Sec_ID in Employess.
For this reason I have two solution:
1.Convert type of Sec_Name column(textcolumn)to MultiComboBoxColumn and set DataSource to list of Sections.A multiComboBoxColumn With two Column:a column named Sec_Id and another Sec_Name all from Section table.Sec_Name is DisplayValue and Sec_Id is ValueMember.
In this solution I have this question:
A)This conversion will be possible?How to??
B)When Form loaded and all records of procedure shown in DataGrid must selected a value from multicomboboxcolumn for each person by automatically.How To?
C)When User want Insert a record by DataGrid,How to Get Selected Value multiComboBoxColumn?
2.Hide Sec_Name Column of my procedure and Insert a new Column by code and set DataSource to my procedure.
In this solution I have B,C question above.
Please help me.
Very Thanks.