Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is it possible to determine if the dt has rows?
Message
 
 
À
12/05/2009 12:19:29
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01399235
Message ID:
01399425
Vues:
51
Update. Sorry, another newbie mistake. The field was ItemNo, not itemNo.

>Hmmm, I don't see anything out of the ordinary but I'm a bit out of practice with windows forms. Are you 100% sure there's a value being loaded to that field in the DS? Maybe set the debugger on the data load and manually inspect the DS contents.
>
Good call, and I indeed forgot to put ItemNo in the Row, but unfortunately, this is not it. In the form Activate I have this code
private void OrdersEntryForm_Activated(object sender, EventArgs e)
        {
            // If first time activation
            if (this._loading == false)
            {
                this.tcOrders.SelectedIndex = 1;
                // this.txtItemNo.Focus();
                _mode = ModeEnum.Add;
                this.grdOrderDetails.Visible = false;
            }
            this._loading = true;
        }
Yet, the grid shows up visible and the first column (ItemNo) is not shown.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform