|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
DataGridTableStyleI'm just starting out, and it's incredibly frustrating when I see
sample code and then try to implement it. Case in point. I'm populating a collection then binding it to a datagrid. That works great. The problem is the columns are in the wrong order. OK. I'll use the datagridtablestyle. But when I add the following statement; Dim tableStyle As New DataGridTableStyle I get an error when I build the project; Type 'DataGridTableStyle' is not defined. so....is there something I have to import? please help before I go bald from pulling out my hair!!! thanks, nita Hi,
It is part of the system.windows.forms namespace. You should not have any problems referencing it from a windows forms application. Ken --------------------------- Show quoteHide quote "nita" <nita_l***@yahoo.com> wrote in message news:1153936114.195830.319150@s13g2000cwa.googlegroups.com... > I'm just starting out, and it's incredibly frustrating when I see > sample code and then try to implement it. > Case in point. I'm populating a collection then binding it to a > datagrid. That works great. The problem is the columns are in the wrong > order. OK. I'll use the datagridtablestyle. But when I add the > following statement; > > Dim tableStyle As New DataGridTableStyle > > I get an error when I build the project; > > Type 'DataGridTableStyle' is not defined. > > so....is there something I have to import? > > please help before I go bald from pulling out my hair!!! > thanks, > nita > > It is part of the system.windows.forms namespace. You should not As long as you use a windowsform for this.> have any problems referencing it from a windows forms application. > Just thinking what this crazy error can be. Cor Show quoteHide quote "Ken Tucker [MVP]" <vb***@bellsouth.net> schreef in bericht news:OoomUPSsGHA.4452@TK2MSFTNGP05.phx.gbl... > Hi, > > It is part of the system.windows.forms namespace. You should not > have any problems referencing it from a windows forms application. > > Ken > --------------------------- > "nita" <nita_l***@yahoo.com> wrote in message > news:1153936114.195830.319150@s13g2000cwa.googlegroups.com... >> I'm just starting out, and it's incredibly frustrating when I see >> sample code and then try to implement it. >> Case in point. I'm populating a collection then binding it to a >> datagrid. That works great. The problem is the columns are in the wrong >> order. OK. I'll use the datagridtablestyle. But when I add the >> following statement; >> >> Dim tableStyle As New DataGridTableStyle >> >> I get an error when I build the project; >> >> Type 'DataGridTableStyle' is not defined. >> >> so....is there something I have to import? >> >> please help before I go bald from pulling out my hair!!! >> thanks, >> nita >> > > nita wrote:
Show quoteHide quote > I'm just starting out, and it's incredibly frustrating when I see This is very odd. That should work.> sample code and then try to implement it. > Case in point. I'm populating a collection then binding it to a > datagrid. That works great. The problem is the columns are in the wrong > order. OK. I'll use the datagridtablestyle. But when I add the > following statement; > > Dim tableStyle As New DataGridTableStyle > > I get an error when I build the project; > > Type 'DataGridTableStyle' is not defined. > > so....is there something I have to import? > > please help before I go bald from pulling out my hair!!! > thanks, > nita Try refering to it fully. Dim tableStyle As New System.Windows.Forms.DataGridTableStyle If that fails. Start a new project, use Windows Application, and go to the code. Paste that line and see if it compiles. B.
VB Code question
At least one object must implement IComparable How to create multiple threads? What is an assembly? Compiling VB (.NET) files located in different directories Parsing Files with Regular Expressions Anyone can help me?£¬How to Convert C# to VB.NET, about Flood Fill Can WinCE & Pocket PC support the "AsyncCallback"? How to launch program from CD after vb deployment installed Datagridview - Move Focus to a Particular Cell |
|||||||||||||||||||||||