Hi,
I got your point.. I am sorry for keeping those requirements in the forum,
I have taken the same code from the demo link for the drop down values as per my requirement.
http://demo.essentialobjects.com/Demos/Grid/Features/Custom%20Column%20-%20Advanced/Demo.aspxcreated a new project as it is and tried with the same C# code which is been used there
protected void Page_Load(object sender, System.EventArgs e)
{
//Get the Repeater control so that we can fill it
//later
EO.Web.CustomColumn productColumn =
(EO.Web.CustomColumn)Grid1.Columns[1];
Repeater productRepeater =
(Repeater)productColumn.EditorInstance.FindControl("Products");
//Fill the repeater from the database
using (DemoDB db = new DemoDB())
{
productRepeater.DataSource = db.ExecuteReader("SELECT * FROM Products");
productRepeater.DataBind();
}
}
protected void Button1_Click(object sender, System.EventArgs e)
{
foreach (EO.Web.GridItem item in Grid1.AddedItems)
{
//Get the product name
string productName = (string)item.Cells[1].Value;
//Get the product quantity. Note user may have
//entered something other than a number, so we
//also check that
int productQty = 0;
try
{
productQty = int.Parse((string)item.Cells[2].Value);
}
catch (Exception ex)
{
System.Diagnostics.Debug.WriteLine(ex.Message);
//Ignore the exception
}
//The Grid provides all the information about what
//have been added/changed, but it does not save them
//to the database for you. You should write code to
//use whatever means that's best/easiest for you to
//save the newly added item here
//Add your code to save productName and productQty
//into the database
}
Label1.Visible = true;
}
My requirements here is...
I am able to bind the data to the grid view (as per using above code)but when we click save the selected value/edited values in the grid is not saving in the data base..(backend)
I am using EO controls first time in .net C# Please help me in finding solution for this
Please let me know any properties needs to be enabled/classes/objects or any setting needs to be done in the aspx.cs page.