I have a grid that contains a dropdown column as bellow:
GridViewComboBoxColumn type =
new
GridViewComboBoxColumn();
type.Name =
"Type"
;
type.HeaderText =
"Type"
;
type.ValueMember =
"Id"
;
type.DisplayMember =
"Type"
;
type.DataSource =
new
string
[] {
"A"
,
"B"
,
"C"
};
type.DropDownStyle = RadDropDownStyle.DropDownList;
grid.Columns.Add(type);
Suppose the user adds two new rows and selects "A" from dropdown for the first row and selects "B" from dropdown for the second row. I don't know how I can save the grid and then load it later. I should say that I know how to use Linq to save data into SQL database, but I don't know how I can get the values that the user selected and how to load data into grid later. Please help me.