Print Page | Close Window

Datagrid on ASP.Net with C#

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: ASP.NET Discussion
Forum Description: Discussion and chat on ASP.NET related topics.
URL: https://forums.webwiz.net/forum_posts.asp?TID=15677
Printed Date: 29 March 2026 at 3:12am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Datagrid on ASP.Net with C#
Posted By: jayesh gupta
Subject: Datagrid on ASP.Net with C#
Date 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
 


-------------
jayesh



Replies:
Posted By: Mart
Date 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)


Posted By: jayesh gupta
Date 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


-------------
jayesh


Posted By: michael
Date 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.

-------------
http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net