944,138 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 9515
  • VB.NET RSS
Aug 2nd, 2006
0

Placing a Multiline textbox over a datagrid

Expand Post »
Hi,
I would like to know how can we place the textbox dynamically over a datagrid.
My requirement is ;
I have a datagrid , with filles datas.And when i click on a particular cell, then a tectbox, with multline ability, should be displayed exactly in the same position as that of the clikced cell.


I tried with dynamucally creating and placing a textbox on 'cellmouse click' event.but it is getting placed on the form and not above the datagrid's clicked cell.Can anyone help me.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
chepps is offline Offline
5 posts
since Jul 2006
Aug 9th, 2006
0

Re: Placing a Multiline textbox over a datagrid

Hi,

Any code you will write on server side (ASP.Net) will cause a round trip to the server (page refresh) and anything you do on the client side with JScript won't affect the real datagrid which is on the server side. You might put a template column but this would only add one multiline textbox for each row. You might consider using Atlas.Net or a AJAX variant but in either case it is difficult. I advise you to reevaluate your UI design and add one more step/page if required.

Loren Soth
Reputation Points: 28
Solved Threads: 4
Posting Whiz in Training
Lord Soth is offline Offline
233 posts
since Mar 2006
Aug 10th, 2006
0

Re: Placing a Multiline textbox over a datagrid

hi Loren Soth ,
Thank you for your message.
iam not using asp.net/java script.
But iam using VB.net that too winforms.

The scenario is that, the datagrid shows the details of operation done on a Patient.ANd one column in the grid , that is the last column is 'Operation Outcome'.So when viewing the datagrid, if the client wants to update the 'Operation Outcome', he/she should be able to do this.And since the 'Outcome' can be multiline, when the grid column is clicked , i need to show a textbox above that datagrid column, so that when he finishes the typing and leave the focus, the content is saved.
So what should be done.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
chepps is offline Offline
5 posts
since Jul 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Downloading VB Express
Next Thread in VB.NET Forum Timeline: Need help to create a login form





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC