Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
|
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 20th, 2005, 02:51 AM
Authorized User
 
Join Date: Jan 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Un edtitable Column in datagrid using ASP.Net

Hi all,

           Can, give me some idea to Build the customise datagrid control. My code is not working properly.
 My code is given below:----

 Private Sub DataGrid1_EditCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs ) Handles DataGrid1.EditCommand
        Try
            Me.DataGrid1.EditItemIndex = e.Item.ItemIndex
            Me.DataGrid1.DataSource = cls.FillDataSet
            Me.DataGrid1.DataBind()
        Catch ex As Exception
            Response.Write(ex.Message)
        Finally
            CType(e.Item.Cells(0).Controls(0), TextBox).Visible = False
        End Try
End Sub

 I have three Field in Product_Id,Product_Name,Price

I Make the column uneditable Which hold the Product_Id information.



 
Old January 20th, 2005, 03:09 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

What exactly does this have to do with XML??

I think you're better off posting this in one of the .NET forums.
If you do, it's a good idea to supply some additional information, like an error message or a detailed description of "my code is not working properly"

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
bind data in asp.net column wise techierm BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 0 September 22nd, 2008 06:48 AM
SOS!How to realize multi-column asp.net ListBox? xewei VS.NET 2002/2003 2 June 3rd, 2007 09:24 PM
vb.net asp.net DataGrid krantips VS.NET 2002/2003 0 June 28th, 2006 01:22 AM
Asp.net upload Excel Column to Database Patrick19 VB.NET 0 April 18th, 2005 02:56 AM
.NET DataGrid Column Headers ashley_y General .NET 1 October 25th, 2004 03:00 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.