Im getting the following errors when trying the code below. Please note estimateno is an int value in the table. Any help would be greatly appreciated.
Error:
The best overloaded method match for 'EstimatorC.EstimatorDataSet.QuoteCalcHeaderDataTable.this[int]' has some invalid arguments E:\VisualStudioProjects\EstimatorC\EstimatorC\Estimate.cs 1653 13 EstimatorCArgument '1': cannot convert from 'string' to 'int' E:\VisualStudioProjects\EstimatorC\EstimatorC\Estimate.cs 1653 46 EstimatorC
Code:
private void findBN_Click(object sender, EventArgs e)
{
string aFilter = "";
////Search name starts with
aFilter = estfindTB.Text;
////Create the filter string.
if (estfindTB.Text.Trim() == "")
{
aFilter = "";
}
else
{
aFilter = aFilter;
}
////Apply the filter.
estimatorDataSet.QuoteCalcHeader.["estimateno"].DefaultView.RowFilter = aFilter;
}
Error:
The best overloaded method match for 'EstimatorC.EstimatorDataSet.QuoteCalcHeaderDataTable.this[int]' has some invalid arguments E:\VisualStudioProjects\EstimatorC\EstimatorC\Estimate.cs 1653 13 EstimatorCArgument '1': cannot convert from 'string' to 'int' E:\VisualStudioProjects\EstimatorC\EstimatorC\Estimate.cs 1653 46 EstimatorC
Code:
private void findBN_Click(object sender, EventArgs e)
{
string aFilter = "";
////Search name starts with
aFilter = estfindTB.Text;
////Create the filter string.
if (estfindTB.Text.Trim() == "")
{
aFilter = "";
}
else
{
aFilter = aFilter;
}
////Apply the filter.
estimatorDataSet.QuoteCalcHeader.["estimateno"].DefaultView.RowFilter = aFilter;
}