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

How to use multiple selected values form a DataGridView Control

13
Expand|Select|Wrap|Line Numbers
  1. int ctr = dataGridView1.CurrentCellAddress.Y;
  2.             string str = dataGridView1[0, ctr].Value.ToString();
  3.             Form1 frm = (Form1)Application.OpenForms["Form1"];
  4.             frm.textBox1.Text = str;
I am using this code to select the values from the 1st column of datagridview. and it is also possible to select any cell value by modifying the code.
But my question is how to use multiple selected values.
thnx in advance
Aug 26 '10 #1
2 3054
mzmishra
390 Expert 256MB
Did you try DataGridView.MultiSelect property
Aug 27 '10 #2
ezhar
13
Pls help me with the complete code how to do data. i want not just to select the row or columns after select i want to transfer the data in one combo box.
Aug 28 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Bung | last post by:
I am trying to retrieve selected values from a multiple select object on a page: *** Selection Page *** <form name="theForm"> <select name="numbers" MULITPLE> <option value="1">One</option>...
4
by: Amy | last post by:
Hello, I've been struggling to learn C#.NET for a while now. I've made some progress, but I'm easily stumped. :( What's stumping me today is this: I've got a stored procedure (SQL) that...
4
by: Lisa Jones | last post by:
Hi Can someone tell me How do you get selected date form MonthCalendar control Thanks so muc Lisa
2
by: Ye Li | last post by:
I have two windows with datagridview control type in one form. I want to move multiple rows from one datagridview to another datagridview. My code is as follows: private void...
0
by: rich | last post by:
I have a database with 1 to many and the many is a list with multiple selects in a list. When I click on a master record I have as part of my form the select statement for the multiple choice...
0
by: WB | last post by:
Hi, I have a ListBox in a Windows form. This ListBox contains a list of products for a user to choose. It's bound to a DataSet like this: listBox1.DataSource = dsProducts.Tables;...
0
daniel aristidou
by: daniel aristidou | last post by:
Does anyone know a method of making a messagebox apper with a locked listbox containing the details of records that you are about to delete that have just been selected in a datagridview control. I...
6
by: =?Utf-8?B?TU1TSkVE?= | last post by:
How to let user delete multi rows from the BindingSource while the SelectionMode Property set to RowHeaderSelect I have in my program datagridview bound it to sql table Throw Bindingsource To...
1
by: balurbabu | last post by:
I am asp.net 2.0 c#.net, I have a list box,listLocation which allows the user to select mulitple selections. These are stored in a database as comma separated values like bangalore,chennai,delhi...
3
by: buterfly0707 | last post by:
i want to get multiple values from datagridview to same textbox and i want to seperate those values from commas. and my datagridview in one form and the textbox in another form.
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: 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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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.