hi
everybody
pls help me to solve my problem. Though my code is right (i feel) i couldnt achieve the result i expect , i tried in all means, any one pls solve my headache!.
it doent works!.
i tried with cell mouse down event also no use.
i need to show the current cell s text in a text box when the datagridview's cell is clicked with mouse, or arrow keys
pls help
kssk
everybody
pls help me to solve my problem. Though my code is right (i feel) i couldnt achieve the result i expect , i tried in all means, any one pls solve my headache!.
Code:
private void DataGrdVw1_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e)
{
string CurrentSelValue;
CurrentSelValue = DataGrdVw1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString();
txtAreaName.Text = CurrentSelValue;
}
i tried with cell mouse down event also no use.
Code:
private void DataGrdVw1_CellMouseDown(object sender,DataGridViewCellMouseEventArgs e)
{
this.GrdText.Text = DataGrdVw1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString();//.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString();
}
pls help
kssk
Comment