Hi Weynard Lleva,
No, you can try this:
public bool IsFilled = false;
if (!IsFilled)
{
string New = "Exec Proc_GetExpenceDetail '" + CodeForExpenseDetails + "'";
this.oForm.DataSources.DataTables.Add("MYDATATABLE");
this.oForm.DataSources.DataTables.Item(0).Clear();
this.oForm.DataSources.DataTables.Item(0).ExecuteQuery(New);
SAPbouiCOM.Grid oGrid = (Grid)this.oForm.Items.Item("Grid").Specific;
oGrid.DataTable = this.oForm.DataSources.DataTables.Item("MYDATATABLE");
IsFilled = true;
}
else
{
string New = "Exec Proc_GetExpenceDetail '" + CodeForExpenseDetails + "'";
this.oForm.DataSources.DataTables.Item(0).Clear();
this.oForm.DataSources.DataTables.Item(0).ExecuteQuery(New);
SAPbouiCOM.Grid oGrid = (Grid)this.oForm.Items.Item("Grid").Specific;
oGrid.DataTable = this.oForm.DataSources.DataTables.Item("MYDATATABLE");
}
Hope it helps.
Thanks & Regards
Ankit Chauhan