473,326 Members | 2,196 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

is this possible in a datagrid

could i have

the scenario:-
i have a grid that has to contain a notes column. but this notes column is
HUGE!! and takes up far too much space. so i need alternate solutions

the idea:-
in the item template column i have a button and a label (visible = false)
the label contains the notes data. on clicking of the button a textbox is
displayed below the grid to show the notes. sounds simple enough

but this grid is also editable. so i need to be able to display the notes
details and then return the value of the textbox into the hidden notes label
of the row im editing

how would i go about passing the value of the texbox back into the row im
editing??

or have you an other ideas?????

Cheers,
Craig
Nov 19 '05 #1
1 829
Hi Craig,

Another solution is in reformat notes column in
datagrid_ItemDataBound event.
It looks like this
noteCell.Text = "<div title='" + whole note + "'>" + short
note + "</div>";

This way notes column normally only shows short note, once
mouse over the short note, it shows whole note.

Hope it's helpful to you.

Elton Wang
el********@hotmail.com
-----Original Message-----
could i have

the scenario:-
i have a grid that has to contain a notes column. but this notes column isHUGE!! and takes up far too much space. so i need alternate solutions
the idea:-
in the item template column i have a button and a label (visible = false)the label contains the notes data. on clicking of the button a textbox isdisplayed below the grid to show the notes. sounds simple enough
but this grid is also editable. so i need to be able to display the notesdetails and then return the value of the textbox into the hidden notes labelof the row im editing

how would i go about passing the value of the texbox back into the row imediting??

or have you an other ideas?????

Cheers,
Craig
.

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Wing | last post by:
Hi all, I execute a stored procedure in my C# code, assign the result to the SqlDataReader object and display it with datagrid. the question I like to ask, is possible to edit the datagrid...
3
by: KatB | last post by:
Hi, is it possible to use a datagrid (read only) that has an xml source that is NOT database-type structured? For example: <assembly> <work_order no="12345"> <station name="one"> <boards>...
2
by: rooster575 | last post by:
I would like my datagrid to have the following format: ID - Name - Phone Title - Birthday - email Is this possible for the header and result items? Thanks.
2
by: Bill nguyen | last post by:
I've been using Datagrid for most of my app's data entry screens. Now I have the need for users to select multiple rows for printing. Is it possible with Datagrid items? Thanks Bill
2
by: Mac via DotNetMonster.com | last post by:
Hi all, I have a datagrid on a form which I have set the datasource (through the form designer) to be a dataset that I have added to the form, also through the form designer. I then have added a...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.