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

C#

 
QuestionHow can I get the "Interop.QuartzTypeLib.dll",thankyou! Pin
zhouyinhui11-Aug-05 4:58
zhouyinhui11-Aug-05 4:58 
AnswerRe: How can I get the "Interop.QuartzTypeLib.dll",thankyou! Pin
Judah Gabriel Himango11-Aug-05 8:54
sponsorJudah Gabriel Himango11-Aug-05 8:54 
AnswerRe: How can I get the "Interop.QuartzTypeLib.dll",thankyou! Pin
uddipto21-Aug-11 2:06
uddipto21-Aug-11 2:06 
GeneralCreating Intellisense for DLL Pin
Yenyen Suwardy11-Aug-05 4:21
Yenyen Suwardy11-Aug-05 4:21 
GeneralRe: Creating Intellisense for DLL Pin
Guffa11-Aug-05 14:41
Guffa11-Aug-05 14:41 
GeneralRe: Creating Intellisense for DLL Pin
Yenyen Suwardy11-Aug-05 15:54
Yenyen Suwardy11-Aug-05 15:54 
GeneralRe: Creating Intellisense for DLL Pin
Yenyen Suwardy11-Aug-05 22:42
Yenyen Suwardy11-Aug-05 22:42 
GeneralRe: Creating Intellisense for DLL Pin
Guffa11-Aug-05 23:28
Guffa11-Aug-05 23:28 
GeneralRe: Creating Intellisense for DLL Pin
Yenyen Suwardy13-Aug-05 18:09
Yenyen Suwardy13-Aug-05 18:09 
GeneralRe: Creating Intellisense for DLL Pin
Yenyen Suwardy11-Aug-05 22:49
Yenyen Suwardy11-Aug-05 22:49 
GeneralDisplaying an Image Pin
Mamtzs11-Aug-05 4:19
sussMamtzs11-Aug-05 4:19 
GeneralRe: Displaying an Image Pin
Matt Gerrans11-Aug-05 5:43
Matt Gerrans11-Aug-05 5:43 
GeneralForgot the name of this add-in! Pin
Carl Mercier11-Aug-05 4:16
Carl Mercier11-Aug-05 4:16 
GeneralRe: Forgot the name of this add-in! Pin
Mohamad Al Husseiny11-Aug-05 4:34
Mohamad Al Husseiny11-Aug-05 4:34 
GeneralRe: Forgot the name of this add-in! Pin
Carl Mercier11-Aug-05 4:39
Carl Mercier11-Aug-05 4:39 
GeneralRe: Forgot the name of this add-in! Pin
Mohamad Al Husseiny11-Aug-05 4:44
Mohamad Al Husseiny11-Aug-05 4:44 
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 
Found this on Windows Forms FAQ (quoting verbatim without permission):

http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx#q934q

... but if the grid has been sorted, you can no longer get at the current row in the table through the grid's CurrentRowIndex. But for both unsorted and sorted grids, you can get at the current row through the BindingContext and the Current property of the BindingManagerBase.
[C#]
BindingManagerBase bm = this.dataGrid1.BindingContextr[this.dataGrid1.DataSource, this.dataGrid1.DataMember];
DataRow dr = ((DataRowView)bm.Current).Row;
[VB.NET]
Dim bm As BindingManagerBase = Me.DataGrid1.BindingContext(Me.DataGrid1.DataSource, Me.DataGrid1.DataMember)
Dim dr As DataRow = CType(bm.Current, DataRowView).Row


Me again. I've noticed that if my BindingManager is disconnected (e.g. bm.SuspendBinding() ) that this throws a wonderful exception. I wrap this in a try/catch block or check that bm.Current > -1.

robrich
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 
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 

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.