Click here to Skip to main content
16,011,469 members
Home / Discussions / C#
   

C#

 
GeneralRe: deploy problem Pin
foysal mamun2-Jul-06 23:54
foysal mamun2-Jul-06 23:54 
AnswerRe: deploy problem [modified] Pin
HakunaMatada2-Jul-06 22:32
HakunaMatada2-Jul-06 22:32 
Questionparent and child window Pin
Rohit Dev2-Jul-06 20:59
Rohit Dev2-Jul-06 20:59 
AnswerRe: parent and child window Pin
Daniel Persson2-Jul-06 21:37
Daniel Persson2-Jul-06 21:37 
QuestionHow to convert struct to byte array? Pin
chandru___2-Jul-06 20:34
chandru___2-Jul-06 20:34 
AnswerRe: How to convert struct to byte array? Pin
Guffa2-Jul-06 21:21
Guffa2-Jul-06 21:21 
AnswerRe: How to convert struct to byte array? Pin
VSush3-Jul-06 0:01
VSush3-Jul-06 0:01 
QuestionUnable to invoke protected method of DataGrid in Paint method Pin
Kais4U2-Jul-06 20:06
Kais4U2-Jul-06 20:06 
Hi,

I found a code on net which allows multiline text in the datagrid cell.
The sample code wasin VB.net, I just converted it to C#.

Now the problem is the GetMethod is returning me null instead of an object. The code snippet is attached below

<br />
      MethodInfo mi = dg.GetType().GetMethod("get_DataGridRows",  <br />
		BindingFlags.FlattenHierarchy | BindingFlags.IgnoreCase |  <br />
                BindingFlags.Instance  | BindingFlags.NonPublic | <br />
                BindingFlags.Public | BindingFlags.Static); <br />
 <br />
<br />
       Array dgRowArray = (Array) mi.Invoke(this.dg, null);<br />


the mi object is not getting created. It always says undefined.
Am executing the above code in the overrided paint event of the datagrid.

Can anyone help me out

Any help is highly appreciated.

Thanks in advance

Regards,
Kais
AnswerRe: Unable to invoke protected method of DataGrid in Paint method Pin
Martin#2-Jul-06 22:44
Martin#2-Jul-06 22:44 
GeneralRe: Unable to invoke protected method of DataGrid in Paint method Pin
Kais4U3-Jul-06 1:34
Kais4U3-Jul-06 1:34 
GeneralRe: Unable to invoke protected method of DataGrid in Paint method Pin
Martin#3-Jul-06 1:52
Martin#3-Jul-06 1:52 
GeneralRe: Unable to invoke protected method of DataGrid in Paint method Pin
Kais4U3-Jul-06 1:59
Kais4U3-Jul-06 1:59 
GeneralRe: Unable to invoke protected method of DataGrid in Paint method [modified] Pin
Martin#3-Jul-06 2:05
Martin#3-Jul-06 2:05 
GeneralRe: Unable to invoke protected method of DataGrid in Paint method Pin
Martin#3-Jul-06 2:10
Martin#3-Jul-06 2:10 
GeneralRe: Unable to invoke protected method of DataGrid in Paint method Pin
Kais4U3-Jul-06 2:16
Kais4U3-Jul-06 2:16 
GeneralRe: Unable to invoke protected method of DataGrid in Paint method Pin
Martin#3-Jul-06 2:21
Martin#3-Jul-06 2:21 
GeneralRe: Unable to invoke protected method of DataGrid in Paint method Pin
Martin#3-Jul-06 2:22
Martin#3-Jul-06 2:22 
GeneralRe: Unable to invoke protected method of DataGrid in Paint method Pin
Kais4U3-Jul-06 2:26
Kais4U3-Jul-06 2:26 
GeneralRe: Unable to invoke protected method of DataGrid in Paint method Pin
Kais4U3-Jul-06 2:29
Kais4U3-Jul-06 2:29 
Questionstdole to C# Image Fails Pin
Ramjet12-Jul-06 19:37
Ramjet12-Jul-06 19:37 
AnswerRe: stdole to C# Image Fails Pin
LongRange.Shooter3-Jul-06 5:12
LongRange.Shooter3-Jul-06 5:12 
GeneralRe: stdole to C# Image Fails Pin
Ramjet13-Jul-06 5:29
Ramjet13-Jul-06 5:29 
QuestionDateTime Pin
aaraaayen2-Jul-06 19:26
aaraaayen2-Jul-06 19:26 
AnswerRe: DateTime Pin
led mike2-Jul-06 19:36
led mike2-Jul-06 19:36 
AnswerRe: DateTime Pin
Tamimi - Code2-Jul-06 19:42
Tamimi - Code2-Jul-06 19:42 

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.