Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GridView DataRowView
Message
From
02/08/2008 01:42:35
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
GridView DataRowView
Miscellaneous
Thread ID:
01336044
Message ID:
01336044
Views:
134
Hi all,

How can I refer to DataRowView in GridView1.SelectedIndexChanged Event, I try code below, but system NullReferenceException error.
 protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
    {
        DataRowView drv = (DataRowView) GridView1.SelectedRow.DataItem;
        TextBox1.Text = drv["id"].ToString();
        
    }
TIA.
Next
Reply
Map
View

Click here to load this message in the networking platform