PC Review


Reply
Thread Tools Rate Thread

DataGridView questions.

 
 
tongueless@gmail.com
Guest
Posts: n/a
 
      19th Jul 2006
I was wondering how to set the default values for a combobox in a DGV.
Now, the boxes just show up empty. I tried searching throught msdn, but
no luck. Anyone know what property to set?

Also, how can I reorder columns in a DGV? When I added the combobox, it
put it at the end. I need it in another spot. Thanks in advance for the
help.

 
Reply With Quote
 
 
 
 
nvx
Guest
Posts: n/a
 
      19th Jul 2006
Hi,
default cell value could be set with
DGV.Rows[x].Cells[y].DefaultNewRowValue. Reordering columns could be
done with DGV.Columns[x].DisplayIndex. Just remember the "real" index of
that column is still the number corresponding to the index you've added
it to.

With regards
nvx


(E-Mail Removed) napsal(a):
> I was wondering how to set the default values for a combobox in a DGV.
> Now, the boxes just show up empty. I tried searching throught msdn, but
> no luck. Anyone know what property to set?
>
> Also, how can I reorder columns in a DGV? When I added the combobox, it
> put it at the end. I need it in another spot. Thanks in advance for the
> help.
>

 
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
DataGridView Questions stumorgan@gmail.com Microsoft C# .NET 1 20th Nov 2008 08:13 AM
2 questions about datagridview Alcibiade Microsoft VB .NET 0 30th Oct 2007 04:16 PM
DataGridView Questions Samuel Shulman Microsoft VB .NET 1 25th Dec 2006 07:51 PM
DataGridView questions. =?Utf-8?B?S2V2aW4gQnVydG9u?= Microsoft Dot NET Framework Forms 3 23rd Jun 2006 11:16 PM
Datagridview questions =?Utf-8?B?QnJpYW4=?= Microsoft VB .NET 1 13th Jan 2006 04:59 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:48 AM.