newbe question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

When a Microsoft help topic says to use this code, where woudl you place it?
Sorry, I know its a lame questions. I am a beginner.

[TypeConverterAttribute(typeof(DataGridViewRowConverter))]
public class DataGridViewRow : DataGridViewBand
 
When a Microsoft help topic says to use this code, where woudl you place it?
Sorry, I know its a lame questions. I am a beginner.

[TypeConverterAttribute(typeof(DataGridViewRowConverter))]
public class DataGridViewRow : DataGridViewBand

If you are asking about attribute class ( this something in []
brackets ), than TypeConverterAttribute should be used as in code you
quoted. You will have to paste it just before you define class which
should be "decorated" with this attribute.

using System;
using System.Data;
//using whatever you need

[TypeConverterAttribute(typeof(DataGridViewRowConverter))] //you
specify: YOUR_CLASS will be docorated with TypeConverterAttribute
public class YOUR_CLASS : DataGridViewBand
{
//body of your class
}


If you want to know more about Attribute classes there is a whole
section about it in MSDN.
 
I want to use this to get the current row of a datagrid view. I know I can
add a ewn class but I am ot sure what to do with this line that Msft includes
with all of there tips:

[TypeConverterAttribute(typeof(DataGridViewRowConverter))]



Ciaran O''Donnell said:
It depends, what are you trying to do.

--
Ciaran O''Donnell
http://wannabedeveloper.spaces.live.com


Chris said:
When a Microsoft help topic says to use this code, where woudl you place it?
Sorry, I know its a lame questions. I am a beginner.

[TypeConverterAttribute(typeof(DataGridViewRowConverter))]
public class DataGridViewRow : DataGridViewBand
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top