C# equivalent of JTable?

  • Thread starter Thread starter Derrick
  • Start date Start date
D

Derrick

What is the C# equivalent of JTable? I need a UI that contains a table with
variable rows, that I can add combo boxes and buttons to for columns.

Thanks in advance!

Derrick
 
Derrick,

I think that what you want is the DataGrid. It is basically a grid
where you can customize the columns (with a little work).

Hope this helps.
 
DataGrid seems very tied to a database. Is it possible to use without
database knowledge? I'm basically looking for a java "Table Model" type
scenario where I can control individual rows and colums, what controls go in
each, respond to events, etc, but without any db present.

Thanks!

Nicholas Paldino said:
Derrick,

I think that what you want is the DataGrid. It is basically a grid
where you can customize the columns (with a little work).

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Derrick said:
What is the C# equivalent of JTable? I need a UI that contains a table with
variable rows, that I can add combo boxes and buttons to for columns.

Thanks in advance!

Derrick
 
Derrick,

A data grid can bind to anything that implements IList. Granted, it
will not give you the best results, but there are other interfaces
(IBoundList for example) which enhance the experience. Also, you don't have
to have a database to use a DataSet, you can create one on your own and then
populate it any way you wish.

The only hard part is the controls part, as you would have to create
custom column types for the controls you want to display.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Derrick said:
DataGrid seems very tied to a database. Is it possible to use without
database knowledge? I'm basically looking for a java "Table Model" type
scenario where I can control individual rows and colums, what controls go in
each, respond to events, etc, but without any db present.

Thanks!

message news:[email protected]...
Derrick,

I think that what you want is the DataGrid. It is basically a grid
where you can customize the columns (with a little work).

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Derrick said:
What is the C# equivalent of JTable? I need a UI that contains a
table
with
variable rows, that I can add combo boxes and buttons to for columns.

Thanks in advance!

Derrick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Show a collection in a table 1
An equivalent to JTable/AbstractTableModel paradigm 1
UI - Docking question 2
Table 2
C# Equivalent of C++ statement 1
C# Table Component 2
LSP to C# 0
C++ equivalent? 4

Back
Top