Click here to Skip to main content
16,004,927 members
Home / Discussions / C#
   

C#

 
GeneralRe: Replace data in DataTable Column Pin
MumbleB22-Nov-07 6:15
MumbleB22-Nov-07 6:15 
GeneralRe: Replace data in DataTable Column Pin
Whytespot22-Nov-07 6:20
Whytespot22-Nov-07 6:20 
GeneralRe: Replace data in DataTable Column Pin
MumbleB22-Nov-07 6:37
MumbleB22-Nov-07 6:37 
QuestionHow to prevent DataGridView from skipping to next row after edit/Enter Pin
Dragan Matic22-Nov-07 1:24
Dragan Matic22-Nov-07 1:24 
AnswerRe: How to prevent DataGridView from skipping to next row after edit/Enter Pin
Andrei Ungureanu22-Nov-07 1:40
Andrei Ungureanu22-Nov-07 1:40 
AnswerRe: How to prevent DataGridView from skipping to next row after edit/Enter Pin
CodingEntrigue22-Nov-07 6:08
CodingEntrigue22-Nov-07 6:08 
GeneralRe: How to prevent DataGridView from skipping to next row after edit/Enter Pin
Dragan Matic22-Nov-07 11:41
Dragan Matic22-Nov-07 11:41 
Questionselect row in Datagridview C# Pin
csanda122-Nov-07 0:41
csanda122-Nov-07 0:41 
Hi all
Im using C# 2005, I have a button search which when you click refreshes the datagridview and displays the search results that's fine. Now what I want is when I select a row or cell the data in that row appear on the respective textboxes in the form to allow the user to update if they want, is there a way that I can do this or another way maybe. Any help will be appreciated!!
<br />
private void btnSearch_Click(object sender, EventArgs e)<br />
        {<br />
            string strConnection = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=datatry.mdb";<br />
            string Company = txtSearch.Text  ;<br />
            string select = "SELECT * FROM ecmain WHERE CompanyName Like  '" + Company + "'";<br />
            OleDbConnection datatryConn = new OleDbConnection(strConnection);<br />
            datatryConn.Open();<br />
            OleDbDataAdapter da = new OleDbDataAdapter(select, datatryConn);<br />
            DataSet ds = new DataSet();<br />
                        <br />
            da.Fill(ds, "ecmain");<br />
           <br />
            dataGridView.AutoGenerateColumns = true;<br />
            dataGridView.DataSource = ds;<br />
            dataGridView.DataMember = "ecmain";<br />
            <br />
<br />
            datatryConn.Close();<br />


Thanx in advance


Csanda
AnswerRe: select row in Datagridview C# Pin
Rocky#22-Nov-07 0:53
Rocky#22-Nov-07 0:53 
GeneralRe: select row in Datagridview C# Pin
csanda122-Nov-07 1:27
csanda122-Nov-07 1:27 
GeneralRe: select row in Datagridview C# Pin
Rocky#22-Nov-07 1:31
Rocky#22-Nov-07 1:31 
GeneralRe: select row in Datagridview C# Pin
csanda122-Nov-07 1:39
csanda122-Nov-07 1:39 
GeneralRe: select row in Datagridview C# Pin
Andrei Ungureanu22-Nov-07 1:37
Andrei Ungureanu22-Nov-07 1:37 
QuestionGetting Last item in ListBox Pin
phracek22-Nov-07 0:24
phracek22-Nov-07 0:24 
AnswerRe: Getting Last item in ListBox Pin
Andrei Ungureanu22-Nov-07 0:25
Andrei Ungureanu22-Nov-07 0:25 
Questionalgorithms of graphs in c# Pin
Sara Sek22-Nov-07 0:15
Sara Sek22-Nov-07 0:15 
QuestionCreate a Setup or Deployment of C# 2.0 One Solution [Contains 3 Project] - Pleae Help Me Urgent Pin
Sundarapandian.Balasubramanian22-Nov-07 0:14
Sundarapandian.Balasubramanian22-Nov-07 0:14 
AnswerRe: Create a Setup or Deployment of C# 2.0 One Solution [Contains 3 Project] - Pleae Help Me Urgent Pin
Andrei Ungureanu22-Nov-07 0:21
Andrei Ungureanu22-Nov-07 0:21 
Questionimporting html files to mysql using c# Pin
micasony22-Nov-07 0:10
micasony22-Nov-07 0:10 
AnswerRe: importing html files to mysql using c# Pin
Andrei Ungureanu22-Nov-07 0:24
Andrei Ungureanu22-Nov-07 0:24 
GeneralRe: importing html files to mysql using c# Pin
micasony22-Nov-07 2:30
micasony22-Nov-07 2:30 
GeneralRe: importing html files to mysql using c# Pin
Andrei Ungureanu22-Nov-07 2:41
Andrei Ungureanu22-Nov-07 2:41 
GeneralRe: importing html files to mysql using c# Pin
micasony22-Nov-07 3:28
micasony22-Nov-07 3:28 
GeneralRe: importing html files to mysql using c# Pin
Andrei Ungureanu22-Nov-07 3:36
Andrei Ungureanu22-Nov-07 3:36 
QuestionDatgrid with Image column does not display Image Pin
Rizwan Bashir22-Nov-07 0:06
Rizwan Bashir22-Nov-07 0:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.