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

C#

 
GeneralObtaining UITypeEditor of an object Pin
Shane Stevens11-Aug-05 3:49
Shane Stevens11-Aug-05 3:49 
GeneralRe: Obtaining UITypeEditor of an object Pin
rudy.net11-Aug-05 17:56
rudy.net11-Aug-05 17:56 
GeneralRe: Obtaining UITypeEditor of an object Pin
Shane Stevens11-Aug-05 17:59
Shane Stevens11-Aug-05 17:59 
GeneralFinding out which row (in the DataTable) has been clicked by the user... Pin
signbit11-Aug-05 3:31
signbit11-Aug-05 3:31 
GeneralRe: Finding out which row (in the DataTable) has been clicked by the user... Pin
Mohamad Al Husseiny11-Aug-05 3:58
Mohamad Al Husseiny11-Aug-05 3:58 
GeneralRe: Finding out which row (in the DataTable) has been clicked by the user... Pin
signbit11-Aug-05 4:12
signbit11-Aug-05 4:12 
GeneralRe: Finding out which row (in the DataTable) has been clicked by the user... Pin
robrich11-Aug-05 4:10
robrich11-Aug-05 4:10 
GeneralRe: Finding out which row (in the DataTable) has been clicked by the user... Pin
Alomgir Miah11-Aug-05 4:24
Alomgir Miah11-Aug-05 4:24 
private int currentGridRow = 0;
private int currentGridColumn = 0;

private void OnGridCurrentCellChanged(object sender, EventArgs e)
{
DataGridCell dataGridCell = this.dataGridAllocation.CurrentCell;
//Update Member Variables
this.currentGridRow = dataGridCell.RowNumber;
this.currentGridColumn = dataGridCell.ColumnNumber;
}

private void OnGridMouseDown(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
//Get Current Point
this.hitTestGridInfo = this.dataGrid.HitTest(new Point(e.X, e.Y));
if (hitTest.Type == DataGridEx.HitTestType.Cell )
{
DataRow row = GetDataRowAt(this.currenGridRow);
}
}
}

private DataRow GetDataRowAt(int index)
{
DataRow dataRow = null;
CurrencyManager currencyManager = null;
currencyManager = (CurrencyManager)this.BindingContext[this.dataTable];
if ( currencyManager != null )
{
dataRow = ((DataRowView)currencyManager.List[index]).Row;
}
return dataRow;
}








Live Life King Size
Alomgir Miah
GeneralRe: Finding out which row (in the DataTable) has been clicked by the user... Pin
signbit11-Aug-05 4:36
signbit11-Aug-05 4:36 
GeneralRe: Finding out which row (in the DataTable) has been clicked by the user... Pin
signbit11-Aug-05 4:50
signbit11-Aug-05 4:50 
GeneralRe: Finding out which row (in the DataTable) has been clicked by the user... Pin
Alomgir Miah11-Aug-05 5:13
Alomgir Miah11-Aug-05 5:13 
GeneralRe: Finding out which row (in the DataTable) has been clicked by the user... Pin
rudy.net11-Aug-05 18:21
rudy.net11-Aug-05 18:21 
GeneralRe: Finding out which row (in the DataTable) has been clicked by the user... Pin
signbit12-Aug-05 0:32
signbit12-Aug-05 0:32 
GeneralRe: Finding out which row (in the DataTable) has been clicked by the user... Pin
rudy.net12-Aug-05 3:48
rudy.net12-Aug-05 3:48 
GeneralRe: Finding out which row (in the DataTable) has been clicked by the user... Pin
signbit16-Aug-05 6:44
signbit16-Aug-05 6:44 
GeneralWindows Service Pin
horacyjr11-Aug-05 2:35
horacyjr11-Aug-05 2:35 
GeneralRe: Windows Service Pin
Alomgir Miah11-Aug-05 5:47
Alomgir Miah11-Aug-05 5:47 
GeneralTAB Key problem in COM Client Vs C# Component Pin
Sivakumar R11-Aug-05 2:18
Sivakumar R11-Aug-05 2:18 
GeneralRe: TAB Key problem in COM Client Vs C# Component Pin
rudy.net11-Aug-05 18:31
rudy.net11-Aug-05 18:31 
GeneralRe: TAB Key problem in COM Client Vs C# Component Pin
Sivakumar R11-Aug-05 22:15
Sivakumar R11-Aug-05 22:15 
GeneralRe: TAB Key problem in COM Client Vs C# Component Pin
rudy.net12-Aug-05 9:09
rudy.net12-Aug-05 9:09 
GeneralCtrl+C exception Pin
zaboboa11-Aug-05 2:09
zaboboa11-Aug-05 2:09 
GeneralRe: Ctrl+C exception Pin
MicrosoftBob11-Aug-05 3:24
MicrosoftBob11-Aug-05 3:24 
GeneralRe: Ctrl+C exception Pin
zaboboa11-Aug-05 5:23
zaboboa11-Aug-05 5:23 
GeneralRe: Ctrl+C exception Pin
MicrosoftBob11-Aug-05 5:24
MicrosoftBob11-Aug-05 5:24 

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.