Hi.
Model:
There is a Grid with a toolbar in which a dropdownwlist with the streets. Its role is to filter the Family data in the Grid by Street - it is work fine.
But...
I want when I adding a new family the StreetId value was taken from the Dropdownlist (Id of street). How can I do that?
Model:
public
class
Family{
public
int
Id {
get
;
set
;}
public
string
FamilyName {
get
;
set
;}
public
int
StreetId {
get
;
set
;}
}
public
class
Street {
public
int
Id {
get
;
set
;}
public
string
StreetName {
get
;
set
;}
}
But...
I want when I adding a new family the StreetId value was taken from the Dropdownlist (Id of street). How can I do that?