Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What data type should I use?

Status
Not open for further replies.

Logmaster

Technical User
Jan 2, 2006
31
US
Hi,

I am working with C#/V.Studio 2005. I am trying to create an application that takes a list of domain names and monitor it.

I have a few questions:
1. How can I create a custom data grid that will be able to:
a. Display around 20 empty rows on 50% of the windows space
before I bind it to a data source.
b. Will by dynamic to include per line context menus
c. Will display alternate row colors.
I have attached a screenshot of what I have in mind in order to give you an idea of what I am looking for:


Could you please take a look and advice on what would the best approach to meet the requirements specified above?

Happy new year,
Joe
 
I wonder if you wouldn't be better off using a list view? Aside from that, is there a reason why you want empty rows, as it would be far easier to only use rows that you have data for, and if you need to add new rows have a button click event that creates blank lines.

As far as "context menus" I can't help you there.

With row coloring, I think that there may be a property in the listview, but can't remember. Though I have certainly seen (and used) the ability to manually color rows. This would be a pretty basic function that you could use to color the rows, should there not be an option.

Good luck,
Kevin

- "The truth hurts, maybe not as much as jumping on a bicycle with no seat, but it hurts.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top