473,503 Members | 2,105 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Setting a context menu for Datagrid field.

I have a 2 columns, 5 rows datagrid with 1st column ReadOnly, and 2nd Column
Editable, (e.g ResourceFiles, Path)
I am trying to make a context menu to open file dialog for path searching.
But I am not able to correctly locate the selected row from the datagrid.

Example:
ResourceFiles Path
res.txt XXXXXXXXXXXXXXXXXXXX

My codes is as follows.

private void Context_Browse_Click(object sender, EventArgs e)

{

this.OpenDialogFile.Title = this.DG_Resource.SelectedRows.????

}

What I want is to get the Dialog Title to be the value from [ResourceFiles]
in the Datagrid's Column 1. Please advise i should i do it?

Thanks in advance.
Jan 4 '07 #1
0 1167

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

Similar topics

18
18302
by: Dixie | last post by:
Can I set the Format property in a date/time field in code? Can I set the Input Mask in a date/time field in code? Can I set the Format of a Yes/No field to Checkbox in code? I am working on...
1
1319
by: Frank Oquendo | last post by:
My DataGrid has a ContextMenu assigned to it. If I right-click the current cell, I get the standard Windows context menu (Cut, Copy, Paste, etc.). If I right-click anywhere else, I get my context...
2
4483
by: Striped | last post by:
What's wrong with the context menu? I have created one for the DataGrid control and showing it like this: private void dataGrid_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e) {...
1
3017
by: skOOb33 | last post by:
I have a context menu for a datagrid that shows up fine. I am wanting to set it to where when a user right clicks anywhere on the grid, it will select the row the mouse is over (if it's over one),...
2
1176
by: Art | last post by:
Hi, Recently I was given a solution to a similar problem with a ListBox, but now I need to do the same thing with a DataGrid. I want my users to be able to right click on a row on a DataGrid...
1
1425
by: Krishna | last post by:
Hi, I am creating a web applicaiton using asp.net v1.1 and c#.net I am displaying list of files from server in a datagrid. I want to do some file operation selecting a file through context menu....
3
5021
by: coltrane | last post by:
Can someone direct me to a reference that describes how to create a context menu for a selected row in a datagrid? I have come across many threads regarding context menus and datagrids but they all...
0
1274
by: faizalks | last post by:
hi all, my problem is how can i include checkbox in context menu and i want to check more than one check box. i have a datagrid, if i right click the column header of grid a context menu will...
3
1408
by: eljainc | last post by:
Hello, I am trying to figure out how to efficiently do the following: Say I have 10 TextBox fields on a form. From each of those, I would like to have a right click context menu. There are 10...
0
7204
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
7091
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
7282
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
7342
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...
0
7464
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
5586
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,...
0
4680
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1516
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
741
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.