Could anyone explain.....
What this bit of code means:
dgdatabase.DataSource=tabdatabase;
if (lstcurrency.Items.Count>=1 & lstrate.Items.Count>=1){
lstcurrency.SelectedIndex = lstrate.Items.Count - 1;
lstrate.SelectedIndex = lstrate.Items.Count - 1;
}}
thank you. any help welcomed.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Mike GoldRank #50 · 30.6K pointsPosted May 14, 2007, 11:40 AM EDT
only if both list controls have one or more items in them, then select the last item in both controls