Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Datagrid on ASP.Net with C#
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Datagrid on ASP.Net with C#

 Post Reply Post Reply
Author
jayesh gupta View Drop Down
Newbie
Newbie


Joined: 30 June 2005
Location: India
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote jayesh gupta Quote  Post ReplyReply Direct Link To This Post Topic: Datagrid on ASP.Net with C#
    Posted: 30 June 2005 at 9:20am
Hi
i m new in Asp.net and C#.I m facing a problem on DataGrid.I have a datagrid which binds with a DS at runtime having some column unbounded on that.
what i want to do is when i click on that particular column of a particular row that column is changed into edit mode.
my question is how can i get the mouse down event on that column of datagrid on web form well its stronly supported on windows application.
 
Thanks in advance
 
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 30 June 2005 at 9:24am
You just add a Add/Update/Delete column at the end of the columns, just fire up VS and add it (think its in template columns)
Back to Top
jayesh gupta View Drop Down
Newbie
Newbie


Joined: 30 June 2005
Location: India
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote jayesh gupta Quote  Post ReplyReply Direct Link To This Post Posted: 30 June 2005 at 9:39am
Thanks
But what actually i want to do is without using such column(Add/Update/Delete) i want to change the column in edit mode.Ex:-i have 5 columns viz.id,name,address,occupation,contact no. in which id,name,address and occupation  are bounded with datasource while the contact no is unbounded column.on databinding ,datagrid fill with 5 records.now the actual thing is to be done.when i click the column contact no of row 4 than only that column is being in edit mode(remember without using Add/Update/Delete column) on client side.
 
thanks
Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 01 July 2005 at 5:57pm
You cannot put a column into edit mode, only a row. You probably have to create a template column for each field that is clickable, and create an event that sets the clicked row into edit mode using the datakey field or so. Should not be hard to do. Use some CSS so the links look like actual text.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.