ItemCommand gets always triggered?

  • Thread starter Thread starter Stijn Verrept
  • Start date Start date
S

Stijn Verrept

I have a grid with a SHOW Column taht is used to show details and a
TextBox. The user can either enter a reference in the TextBox or
choose one from the list.

But when a user clicks in the grid to view details, goes back and then
enters a number in the TextBox the ItemCommand gets triggered. How can
I avoid this?

I tried with putting this condition on top of the ItemCommand event

if (TextBox1.Text.Length == 0)

but the previous record in the DataGrid still gets selected.
 
Stijn said:
I have a grid with a SHOW Column taht is used to show details and a
TextBox. The user can either enter a reference in the TextBox or
choose one from the list.

But when a user clicks in the grid to view details, goes back and then
enters a number in the TextBox the ItemCommand gets triggered. How
can I avoid this?

I tried with putting this condition on top of the ItemCommand event

if (TextBox1.Text.Length == 0)

but the previous record in the DataGrid still gets selected.

Nobody else has this problem or a solution for it?
 
Back
Top