Click here to Skip to main content
15,922,584 members
Home / Discussions / C#
   

C#

 
GeneralRe: DataList item command Pin
DannyAdler20-Dec-07 3:23
DannyAdler20-Dec-07 3:23 
GeneralRe: DataList item command Pin
mohitmastermind20-Dec-07 3:53
mohitmastermind20-Dec-07 3:53 
AnswerRe: DataList item command Pin
mohitmastermind20-Dec-07 3:23
mohitmastermind20-Dec-07 3:23 
AnswerRe: DataList item command Pin
Rajkumar Chaurasiya12-Feb-10 17:42
Rajkumar Chaurasiya12-Feb-10 17:42 
Generalcustomize wsdl Pin
robot_rock20-Dec-07 1:45
robot_rock20-Dec-07 1:45 
GeneralC#;how to trace DataGridView's click event Pin
kssknov20-Dec-07 1:24
kssknov20-Dec-07 1:24 
QuestionRe: C#;how to trace DataGridView's click event Pin
Ujjaval Modi20-Dec-07 1:30
Ujjaval Modi20-Dec-07 1:30 
QuestionRe: C#;how to trace DataGridView's click event Pin
kssknov20-Dec-07 19:22
kssknov20-Dec-07 19:22 
hi
i have a datagridview contrl which populates a column from table thru dataset.
when i click, or browse through arrow keys , the current cells items should be shown in textboxes for edition.(the selected cell item is key value, i pass it to storedproc and select its other fields to show in textboxes) i had did this through a button click as follows

<br />
 private void button1_Click(object sender, EventArgs e)<br />
        {<br />
          dsGridToTxtBx = obj._selectGridCellAreaDetails(<big>DataGrdVw1.CurrentCell.Value.ToString(</big>));<br />
            {<br />
              AreaIdValue = dsGridToTxtBx.Tables[0].Rows[0].ItemArray[0].ToString();<br />
            <br />
             //here retrieved other fields are displayed in two text boxes<br />
              txtAreaName.Text = dsGridToTxtBx.Tables[0].Rows[0].ItemArray[1].ToString(); //textbox1<br />
              txtRegion.Text = dsGridToTxtBx.Tables[0].Rows[0].ItemArray[2].ToString();//textbox2<br />
                <br />
            }<br />
}


also i tried like this but this doesnt works?
D'Oh! | :doh:

private void DataGrdVw1_CellClick(object sender, DataGridViewCellEventArgs e)<br />
             {<br />
                 string CurrentSelValue;<br />
                 CurrentSelValue = DataGrdVw1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString();<br />
                 txtAreaName.Text = CurrentSelValue;<br />
             }


i would thank if anybody gives me solution

kssk
kssk/div>

Generalcompile error Pin
arkiboys20-Dec-07 1:17
arkiboys20-Dec-07 1:17 
GeneralRe: compile error Pin
J4amieC20-Dec-07 1:26
J4amieC20-Dec-07 1:26 
GeneralRe: compile error Pin
arkiboys20-Dec-07 1:36
arkiboys20-Dec-07 1:36 
GeneralRe: compile error Pin
Pete O'Hanlon20-Dec-07 1:58
mvePete O'Hanlon20-Dec-07 1:58 
GeneralRe: compile error Pin
J4amieC20-Dec-07 2:04
J4amieC20-Dec-07 2:04 
GeneralRe: compile error Pin
Pete O'Hanlon20-Dec-07 2:37
mvePete O'Hanlon20-Dec-07 2:37 
GeneralRe: compile error Pin
J4amieC20-Dec-07 2:58
J4amieC20-Dec-07 2:58 
GeneralRe: compile error Pin
Pete O'Hanlon20-Dec-07 3:28
mvePete O'Hanlon20-Dec-07 3:28 
GeneralRe: compile error Pin
Colin Angus Mackay20-Dec-07 3:51
Colin Angus Mackay20-Dec-07 3:51 
GeneralRe: compile error Pin
Pete O'Hanlon20-Dec-07 4:46
mvePete O'Hanlon20-Dec-07 4:46 
GeneralRe: compile error Pin
J4amieC20-Dec-07 2:00
J4amieC20-Dec-07 2:00 
QuestionHow to edit datagridview in .net windows application Pin
V K Gupta20-Dec-07 0:56
V K Gupta20-Dec-07 0:56 
AnswerRe: How to edit datagridview in .net windows application Pin
NewToAspDotNet20-Dec-07 1:27
NewToAspDotNet20-Dec-07 1:27 
GeneralDataGridView DeleteRow issue Pin
NewToAspDotNet20-Dec-07 0:01
NewToAspDotNet20-Dec-07 0:01 
GeneralRe: DataGridView DeleteRow issue Pin
KennyPatel20-Dec-07 0:19
KennyPatel20-Dec-07 0:19 
GeneralRe: DataGridView DeleteRow issue Pin
NewToAspDotNet20-Dec-07 1:08
NewToAspDotNet20-Dec-07 1:08 
AnswerRe: DataGridView DeleteRow issue Pin
Ujjaval Modi20-Dec-07 0:59
Ujjaval Modi20-Dec-07 0:59 

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.