public void BindGrid() { // Declare col as Collection of Region_mst Object to get all records from table BLLCollection <Mode_mst> col = new BLLCollection <Mode_mst>(); col = ObjMode.Get_All(); Modegrdw.DataSource = col; Modegrdw.DataBind(); ClearControl(); }
protected void BindDropMode() { colMode = objMode.Get_All(); drpMode.DataTextField = "modename"; drpMode.DataValueField = "modeid"; drpMode.DataSource = colMode; drpMode.DataBind(); ListItem item = new ListItem(); item.Text = "-------------Select-------------"; item.Value = "0"; drpMode.Items.Add(item); drpMode.SelectedValue = "0"; }