Skip to main content

Retrieving Detail Table Data

%SystemPath%\Common\eBAPI.dll
using System.Web.UI;
using System.Web.UI.WebControls;

for(int y = 0; y```<``` DetailsGrid1.CurrentRowCount; y++) //We navigate the rows 

{

For DropDownList

string a = ((DropDownList)DetailsGrid1.GetRowObject(y,"List1")). SelectedItem.Text;

string b = ((DropDownList)DetailsGrid1.GetRowObject(y,"txParamGroup")). SelectedItem.Value;

For eBACombobox

string c = ((eBAComboBox)DetailsGrid1.GetRowObject(y,"List2")). Text;

string d = ((eBAComboBox)DetailsGrid1.GetRowObject(y,"txValue1")). Value;

For TextBox

string g = ((TextBox)DetailsGrid1.GetRowObject(y,"Text1")). Text;

For CheckBox

bool t= ((CheckBox)DetailsGrid1.GetRowObject(y,"CheckBox1")). Checked;

ShowMessageBox(a+" ,"+c+","+g);

}