DataGridBoolColumn - add to an existing table

R

richbward

Good evening,

Perhaps I am asking a stupid question. I have seen many postings where
DataGridBoolColumn is set against an existing column in a table. What
I would like to do is add a column to an existing dataset purely for
selection. So, perhaps something like this:

....
OracleConnection conn = new OracleConnection(strConn);
conn.Open();

OracleCommand cmd = new OracleCommand(strSQL,conn);
cmd.Parameters.Add( new
OracleParameter(":Firm",OracleType.VarChar,50));
cmd.Parameters[":Firm"].Value = strFirm;
DataSet ds = new DataSet();
OracleDataAdapter oDA = new OracleDataAdapter(cmd);

try
{
oDA.Fill(ds);
dGrid2.DataSource = ds;
....
And then I'd like to add a display only column with radio buttons.

Any wisdom on this would be greatly appreciated.

Best,

- Rich
 
C

Carl

If you want to add a radio button to each row, add a template column to
the grid. I don't think it's necessary to add a new column to the data
source in this case.
 

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

Top