Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is it possible to determine if the dt has rows?
Message
 
 
To
12/05/2009 12:19:29
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
ASP.NET
Category:
ADO.NET
Environment versions
Environment:
C# 3.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01399235
Message ID:
01399425
Views:
50
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
Previous
Reply
Map
View

Click here to load this message in the networking platform