473,385 Members | 1,782 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,385 software developers and data experts.

open a dialogue from datagrid?

I use Windows Forms C# Appl.

Here is my code:

if(e.Button == MouseButtons.Left)
{
if(hti.Type == DataGrid.HitTestType.Cell)
{
int intKontoID =
(int)dataGridFiBuKontenplan[dataGridFiBuKontenplan.CurrentCell.RowNumber,0];
//int intKontoID = 0;
string strKonto =
dataGridFiBuKontenplan[dataGridFiBuKontenplan.CurrentCell.RowNumber,1].ToStr
ing();
if((frmFiBuBuchungDlg == null)||(frmFiBuBuchungDlg.IsDisposed))
{
frmFiBuBuchungDlg = new frmFiBuBuchung(intKontoID,strKonto);
frmFiBuBuchungDlg.MdiParent=this.MdiParent;
frmFiBuBuchungDlg.Show();
}
frmFiBuBuchungDlg.Activate();
frmFiBuBuchungDlg.WindowState = FormWindowState.Normal;
}
}

My datas in the Datagrid:
----------------------------
ID,Accountnr,Accountname
My problem:
-----------------
If I click in my datagrid into the cell Accountnr i can not use a 2. times
the same celles Why?
I can click into the same row, but not in the same row the same column why?

Its possible i can this feature switch off or is my code somewhere not
correctly?

I hope someone understand my problem an i hope more someone can help me

Thanks

Michael Schindler

Nov 15 '05 #1
0 940

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

Similar topics

2
by: kevinm3574 | last post by:
So, I'm doing the following in a php script so that I can fire a download dialogue AND redirect the page (after clicking submit in a form). I'm doing it this way because of the problem with...
2
by: Sam | last post by:
I would like to allow the user to choose a file in Access97. I believe it should be a "common dialogue" control, but it's difficult to find information on it. If someone could give me some...
5
by: Mr Gordonz | last post by:
Hi all, I want to put a button on a page, and when the user clicks it, the standard Windows "Open File" dialogue box opens, and the user can browse/select a file on their PC. Having selected a...
1
by: Keith | last post by:
I have a minor problem with a piece of code I have written to download a CSV file in an ASP.NET application. It works fine except that if the user presses the Open button on the IE6 download...
12
by: Ger | last post by:
My dialogue form (sometimes partly, sometimes as a whole) remains visible during a fairly long processing job. The dialogue asks the user to enter some data for the job to follow, and after OK,...
44
by: sasan3 | last post by:
Please read below for my collective response to recent posts on this topic. First a repeat of my suggestion: "Anytime you feel you are in a position to answer a question, but don't feel like...
1
by: Iain | last post by:
Hi All I have a datagrid - buit dynamically from a database table - which contains a column with links to many documents. When the user selects a link I want them to be able to open the document...
1
by: Scott | last post by:
Hello- I have a contol button on a form that I want to code to open a report (rptReviews), then display the print dialogue box so that users can select a printer. This report needs color, but...
8
by: harvindersingh | last post by:
Hello guys I have some custom events in my application i.e. KeyPress such as full screen for pressing F11 and so on. Currently this works fine but only when the main form which is listening tot he...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.