?
Solved

Need to select Gridview Row Column using Winforms

Posted on 2009-04-24
3
Medium Priority
?
1,434 Views
Last Modified: 2013-12-17
Hello

I am New to c# winforms. I have a gridview control on a winform in c#. It is populated and when I click my button I want to get the value at a specific row and column.

How DO I do that?

      DataSet ds = new DataSet();
      ds = ws.getUserList(a);  //  method returns data set
      GridView1.DataSource = ds.Tables[0];

then in my on_click

    private void btnEdit_Click(object sender, EventArgs e)
    {
         Here get value of colum in selected row
    }

Thanks

0
Comment
Question by:Charles Baldo
  • 2
3 Comments
 
LVL 26

Accepted Solution

by:
Anurag Thakur earned 2000 total points
ID: 24230889
0
 

Author Comment

by:Charles Baldo
ID: 24232003
No I saw that post. It is for a web froms gridview control. There is no selectedrow property in the winforms version
0
 

Author Closing Comment

by:Charles Baldo
ID: 31574474
Was able to figure it out from that link
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Simulator games are perfect for generating sample realistic data streams, especially for learning data analysis. It is even useful for demoing offerings such as Azure stream analytics, PowerBI etc.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month14 days, 17 hours left to enroll

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question