F
Fir5tSight
Hi All,
This seems to be a difficult problem for me. Hope you can help me
out...
I have a program whose major part is a grid that displays several
columns from data obtained from a stored procedure. There is a dialog,
and if the user clicks on the "OK" button, an extra column should be
appended to the grid. BTW, a separate stored procedure is used to get
data including this extra column.
Now I have both stored procedures ready. However, the difficult part is
that I don't know where to add C# code to add the extra column, or to
use the second stored procedure containing the extra column. I also
don't know what other changes to make in order for it to work.
The "btnOK_Click" method is not defined in the class for the dialog.
Instead it's defined in its base class from which the dialog is
derived. To give you more details, the methods is as follows:
private void btnOK_Click(object sender, System.EventArgs e)
{
foreach(string lValue in mFilters.Keys)
{
this.CaptureValue(lValue,this[lValue]);
}
this.ThisBindingContext.SaveSettings();
}
Anyone can tell me what I need to do in order to get an extra column
added to the grid upon clicking on the "OK" button?
Many thanks!
-Emily
This seems to be a difficult problem for me. Hope you can help me
out...
I have a program whose major part is a grid that displays several
columns from data obtained from a stored procedure. There is a dialog,
and if the user clicks on the "OK" button, an extra column should be
appended to the grid. BTW, a separate stored procedure is used to get
data including this extra column.
Now I have both stored procedures ready. However, the difficult part is
that I don't know where to add C# code to add the extra column, or to
use the second stored procedure containing the extra column. I also
don't know what other changes to make in order for it to work.
The "btnOK_Click" method is not defined in the class for the dialog.
Instead it's defined in its base class from which the dialog is
derived. To give you more details, the methods is as follows:
private void btnOK_Click(object sender, System.EventArgs e)
{
foreach(string lValue in mFilters.Keys)
{
this.CaptureValue(lValue,this[lValue]);
}
this.ThisBindingContext.SaveSettings();
}
Anyone can tell me what I need to do in order to get an extra column
added to the grid upon clicking on the "OK" button?
Many thanks!
-Emily