am using windows application..
i use below code
private void txtCustmrName_TextChanged(object sender, EventArgs e)
{
int txtLen = this.txtCustmrName.Text.Length;
string unme;
for (int myRow = 0; myRow <= dguser.Rows.Count - 1; myRow++)
{
unme=dguser.Rows[myRow].Cells[1].Value.ToString();
dguser.Rows[myRow].Visible = false;
if (unme.Length < txtLen)
{
continue;
}
else
{
if (unme.Substring(0, txtLen) == txtCustmrName.Text)
{
dguser.Rows[myRow].Visible = true;
}
}
}
it shows
"Row associated with the currency manager's position cannot be made invisible."
this error in "unme=dguser.Rows[myRow].Cells[1].Value.ToString();" this code..