or
void
GetData(){
using
(ShoppingMallDataSet smds =
new
ShoppingMallDataSet())
{
using
(var conn =
new
SqlConnection(connection_string))
{
using
(var adapter =
new
ShoppingMallDataSetTableAdapters.TClientTableAdapter() { Connection = conn })
{
adapter.Fill(smds.TClient);
bs.DataSource = smds.TClient;
}
}
}
.....
rgv.MasterTemplate.DataSource = bs;
GetData();
The RadMenuComboItem allows you to put a drop-down list on a menu. To add items to the combo box work with the Items collection of the RadMenuComboItem.ComboBoxElement property. Because the ComboBoxElement returns a RadDropDownListElement, you can also use data binding to put items in the drop-down list from any data source.
Id | Name | ItemToBuy |
1 | mike | Toshiba portage |
1 | mike | Dell Latitude |
2 | nancy | Toshiba portage |
2 | nancy | Sony vioa |
3 | rosa | Asus |
3 | rosa | Hp |
4 | farid | Sony vioa |
Id | Name | ItemToBuy |
1 | mike | Toshiba portage |
Dell Latitude | ||
2 | nancy | Toshiba portage |
Sony vioa | ||
3 | rosa | Asus |
Hp | ||
4 | farid | Sony vioa //---------------------------------------- i dont want to use Hierarchical structure |