I found the following code on microsoft.support.com which is supposed to with of a column
'----------------------------------------------
Dim ts As New DataGridTableStyle(
ts.MappingName = "tbl_Client
DataGrid1.TableStyles.Clear(
DataGrid1.TableStyles.Add(ts
DataGrid1.TableStyles("tbl_Client").GridColumnStyles("First_Name").Width = 17
'--------------------------------------------------------------------------------------
Where tbl_Client is the Table name and First_Name is the column Name
But when I run the code I get the following error

Object reference not set to an instance of an objec

Thanks for your hel

Re: Datagrid Column Width by Miha

Miha
Fri Feb 20 04:13:35 CST 2004

Hi Heinz,

I think that there is no First_Name column style.
You should probably add it to ts.

--
Miha Markic [MVP C#] - RightHand .NET consulting & software development
miha at rthand com
www.rthand.com

"Heinz Deubler" <hdeubler@hotmail.com> wrote in message
news:DBA354BF-04BD-412E-B734-5839AB134847@microsoft.com...
> I found the following code on microsoft.support.com which is supposed to
with of a column.
> '-----------------------------------------------
> Dim ts As New DataGridTableStyle()
> ts.MappingName = "tbl_Client"
> DataGrid1.TableStyles.Clear()
> DataGrid1.TableStyles.Add(ts)
> DataGrid1.TableStyles("tbl_Client").GridColumnStyles("First_Name").Width =
175
>
'---------------------------------------------------------------------------
------------
> Where tbl_Client is the Table name and First_Name is the column Name.
> But when I run the code I get the following error:
>
> Object reference not set to an instance of an object
>
> Thanks for your help
>



Re: Datagrid Column Width by SanBoloni

SanBoloni
Fri Dec 01 19:10:08 CST 2006


I 've find this useful information in aol for the community o
www.hightechtalks.com. Get it *'getting a credit card with no credit
(http://creditcard-xigut.blogspot.com/)*. One other 1 *'creditcard
(http://creditcard-siwol.blogspot.com)* site you can find here agai
it's best aboutc *'www chase credit cards
(http://uskupi.com/creditcard/www-chase-credit-cards.html)*. Here abou
*'what is the best credit card for me' (http://card.bestbidbuy.org)

--
SanBolon
-----------------------------------------------------------------------
SanBoloni's Profile: http://www.hightechtalks.com/m39
View this thread: http://www.hightechtalks.com/t14733


Re: Datagrid Column Width by Evdokia

Evdokia
Tue Dec 26 19:10:06 CST 2006


Who know smth more aboute 'alprazalam
(http://alprazolam.bravehost.com/index1.html

--
Evdoki
-----------------------------------------------------------------------
Evdokia's Profile: http://www.hightechtalks.com/m50
View this thread: http://www.hightechtalks.com/t14733


Re: Datagrid Column Width by AmblogoBu

AmblogoBu
Tue Jan 09 22:10:32 CST 2007


Now I've found free experienceh 'free gay web cam
(http://free-gay-web-cam-466sf4.nasty-sex-chat.org/) and additiona
there9 'free live web cam site
(http://free-live-web-cam-site-466sf4.adult-chat-world.info/)
More and great try free here1 'free teen videos
(http://teen.bazehost.info/index131.html

--
AmblogoB
-----------------------------------------------------------------------
AmblogoBu's Profile: http://www.hightechtalks.com/m54
View this thread: http://www.hightechtalks.com/t14733