PC Review


Reply
Thread Tools Rate Thread

datagrid et VB.NET

 
 
Maileen
Guest
Posts: n/a
 
      6th Aug 2005
Hi,

I would like to use the DataGrid class to display the content on my XML
file.

but i would like to use it in such way :
1st column is not editable (and could be considered as header)...it just
displays the XML node name

2nd column should display the value of these XML node and allow user to
change the values. So this column should allow editmode.

How can i do the 1st column with same design as the column header ? (i
mean not editable, and with particular background color, forecolor or
font type)

thanks a lot,
Maileen
 
Reply With Quote
 
 
 
 
Cor Ligthert [MVP]
Guest
Posts: n/a
 
      6th Aug 2005
Maileen,

It is not imposible however a lot of work.
First do you have to rotate the datatable in the dataset

See this link for that on our website.
http://www.windowsformsdatagridhelp....8-2b9e762316ab

Than would you have to use table styles (search yourself on our site for
samples for that), than you have to rotate the datatable back to its
original format to write the dataset back.

And this all assuming that your XML file has the dataset format.

However, I hope that this helps,

Cor

"


 
Reply With Quote
 
Maileen
Guest
Posts: n/a
 
      6th Aug 2005
thanks Cor for your help.
in fact, i don't have any problem with rotate table, this process i
know, but my problem is more with tablestyles...i have some trouble to
setup it correctly, to make my 1st column like headers.

could you help me please ?
thanks,
Maileen

Cor Ligthert [MVP] wrote:
> Maileen,
>
> It is not imposible however a lot of work.
> First do you have to rotate the datatable in the dataset
>
> See this link for that on our website.
> http://www.windowsformsdatagridhelp....8-2b9e762316ab
>
> Than would you have to use table styles (search yourself on our site for
> samples for that), than you have to rotate the datatable back to its
> original format to write the dataset back.
>
> And this all assuming that your XML file has the dataset format.
>
> However, I hope that this helps,
>
> Cor
>
> "
>
>

 
Reply With Quote
 
Cor Ligthert [MVP]
Guest
Posts: n/a
 
      6th Aug 2005
Maileen,

I told you that it is a lot of work, and probably it is not real nice.

You can look at our site how to handle styles. Just search for style on that
and you get a lot of samples.

I am not interested in this, I will help people however not be hours busy to
build a strange datagrid that I never will use myself.

Sorry

Cor


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MVVM: Single datagrid row selection when a datagrid contains anotherdatagrid in side RowDetailsTemplate Sunita@.NET Microsoft C# .NET 0 12th Nov 2010 09:03 AM
How to add a Dropdown list to a datagrid at runtime (dynamic) without using template columns in ASP.NET and still have the ability to us the datagrid Update event. Daniel Roth Microsoft Dot NET Framework 0 5th Apr 2005 04:54 AM
Filling One DataGrid Based on Selection from Another DataGrid - Both in Separate User Controls thegame Microsoft ASP .NET 1 28th Feb 2005 04:23 PM
Added CheckBox to a DataGrid Doesn't work with DataGrid.Enabled=False Amar Microsoft ASP .NET 0 6th Apr 2004 11:14 AM
DataGrid Component | Displaying columns of a DataSet as Rows in a DataGrid ? Diego TERCERO Microsoft C# .NET 3 19th Dec 2003 02:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:01 AM.