473,473 Members | 1,807 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How i can set in specific cell in a datagrid mytext?

How i can set in a datagrid in c# widows forms in a specifig cell example
Row 3 column 4 a specifig data for example "Michael"?

I want after the user give in a cell in my datagrid additionally datas set
in the same row but in a other column but automaticly.

Is that possible an how I can realize that?

thanks

Michael
Nov 15 '05 #1
2 2090
withz xxx.BeginEdit(datagrid....etc)

But I have also a problem ... if i have edited a cell..changed the arrow of
the left side of the datagrid to pencil...end then does not function the
Methode "BeginnEdit" eny longer.

Has anywhere a idea...and can help me?

Please

Thanks

Michael

"michael Schindler" <mr******@hotmail.com> schrieb im Newsbeitrag
news:ep*************@tk2msftngp13.phx.gbl...
How i can set in a datagrid in c# widows forms in a specifig cell example
Row 3 column 4 a specifig data for example "Michael"?

I want after the user give in a cell in my datagrid additionally datas set
in the same row but in a other column but automaticly.

Is that possible an how I can realize that?

thanks

Michael

Nov 15 '05 #2
You can use this....

private void buttonSetCurrentCell_Click(object o, EventArgs e)
{
DataGridCell currentCell;
string currentCellData;

// Get the text to put into the current cell.
currentCellData = textBoxCurrentCell.Text;

// Get the current cell.
currentCell = dataGrid.CurrentCell;

// Set the current cell's data.
dataGrid[currentCell.RowNumber,currentCell.ColumnNumber] = currentCellData;
//Change currentCell.RowNumber to your numbers and Column as well
}

"michael Schindler" <mr******@hotmail.com> wrote in message
news:ep*************@tk2msftngp13.phx.gbl...
How i can set in a datagrid in c# widows forms in a specifig cell example
Row 3 column 4 a specifig data for example "Michael"?

I want after the user give in a cell in my datagrid additionally datas set
in the same row but in a other column but automaticly.

Is that possible an how I can realize that?

thanks

Michael

Nov 15 '05 #3

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

Similar topics

1
by: Gerg | last post by:
The datagrid has a tablestyle applied to it, and there are DataGridTextBoxColumn and each DataGridTextBoxColumn has an array of DataGridTextBox objects. Private Sub highlight(ByVal str As...
2
by: Michael Schindler | last post by:
How can I in a cell see whether these am empty and if a text of me inside to set? For example "100012" into the cell Row 3 column 3? I work whit C# wondows Appl. Thanks Michael
3
by: Michael Schindler | last post by:
Hello NG How I can delete a specific cell in my Datagrid. I would like if the user is in the column 6 the value changed, after automaticly the value in the column 7 in the same row to delete....
4
by: Steve B. | last post by:
How do I find the column (index) number at runtime of a particular DataGrid column if I know the column header string //somthing like the following int x = datagrid.column;
3
by: coleenholley | last post by:
I need to know how to get a specific row/cell of data to post as a session variable - like I would with an ASP.Net table: Dim ld_sum_tot_cty_tax As Doubl Session("wa_tot_gal") =...
2
by: Daniel Walzenbach | last post by:
Hi, I created an ASP.NET Datagrid where a single row can be selected by clicking anywhere on the row (according to...
2
by: tenzeel. | last post by:
i wants that the Event would fie when we click on DataGrid using Asp.net without using any select command or hyperlink. i just want that user click on the specific cell of datagrid then the even...
4
by: gugu | last post by:
Hi I have a datagrid which has 20 rows and 20 columns, 15 of 20 columns are checkboxs and their headertexts, datafields are dynamic. I need to loop through the whole page to see if the specific...
1
by: Gidi | last post by:
Hi, Is it possible to Disable editing of one specific cell in one specific row in dataGrid? Thanks, Gidi.
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.