Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
ASP .Net
ASP .Net Datagrid Control
datagrid question
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Purdy, post: 4259923"] [URL]http://aspnet.4guysfromrolla.com/articles/090902-1.aspx[/URL] I have used this and double checked my work and it isn't working for me! uggh! what am i doing wrong? the error i get is : 'Form1.MyDataGrid__ctl6_TxtDiscPct' is null or not an object. i am using frames, does that matter at all? thx for any help. Here is my code: Sub MyDataGrid_Edit(ByVal s As Object, ByVal e As DataGridCommandEventArgs) MyDataGrid.EditItemIndex = e.Item.ItemIndex Dim ds As DataSet ds = CType(Session("GlobalDataGrid"), DataSet) MyDataGrid.DataSource = ds MyDataGrid.DataBind() Dim tb As TextBox tb = MyDataGrid.Items(e.Item.ItemIndex).Cells(3).FindControl "TxtDiscPct") RegisterStartupScript("focus", "<script language=""JavaScript"">" & vbCrLf & _ vbTab & "Form1." & tb.ClientID & ".focus();" & _ vbCrLf & vbTab & "Form1." & tb.ClientID & ".select();" & _ vbCrLf & "<" & "/script>") [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
ASP .Net Datagrid Control
datagrid question
Top