By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,991 Members | 1,380 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,991 IT Pros & Developers. It's quick & easy.

newbe question

P: n/a
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(DataGridViewRowConve rter))]
public class DataGridViewRow : DataGridViewBand

Feb 2 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
On 2 Lut, 19:13, Chris <C...@discussions.microsoft.comwrote:
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(DataGridViewRowConve rter))]
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(DataGridViewRowConve rter))] //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.

Feb 2 '07 #2

P: n/a
It depends, what are you trying to do.

--
Ciaran O''Donnell
http://wannabedeveloper.spaces.live.com
"Chris" wrote:
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(DataGridViewRowConve rter))]
public class DataGridViewRow : DataGridViewBand
Feb 5 '07 #3

P: n/a
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(DataGridViewRowConve rter))]

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

--
Ciaran O''Donnell
http://wannabedeveloper.spaces.live.com
"Chris" wrote:
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(DataGridViewRowConve rter))]
public class DataGridViewRow : DataGridViewBand

Feb 5 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.