471,627 Members | 1,765 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,627 software developers and data experts.

DataGridBoolColumn - add to an existing table

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);

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

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.


- Rich

Feb 21 '06 #1
2 1255
You can add column to dataTable after fill. But I recomend you to use
typed DataSets.

Feb 22 '06 #2
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.

Feb 22 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Erald Kulk | last post: by
reply views Thread by subT | last post: by
reply views Thread by Alice April via .NET 247 | last post: by
4 posts views Thread by Ubi | last post: by
2 posts views Thread by James Goodman | last post: by
1 post views Thread by B.J. Raiford | last post: by
reply views Thread by Ryan Liu | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.