C
Christopher Calhoun
Does anyone know how to add a column to the end of a datagrid.
Thanks in Advance.
Thanks in Advance.
Does anyone know how to add a column to the end of a datagrid.
Thanks in Advance.
Alvin Bruney said:find the count on the dataset
column.addat(dataset.tables[0].Column.count - 1)
if you have an underlying dataset otherwise use the count returned from the
column collection
--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
Christopher Calhoun said:How do I determine the last column in a datagrid with auto-generated
columns. I need to use the column.AddAt method to add a button column to the
end of the columns.
In my case this must be done programmatically.
So If I know the last index I can do i that way..
Thanks in Advance!
Christopher Calhoun said:What event should this be done in? I would think that it should be done
after the column auto generation... in which ever event is fired last...
Hmmmm....
Alvin Bruney said:find the count on the dataset
column.addat(dataset.tables[0].Column.count - 1)
if you have an underlying dataset otherwise use the count returned from the
column collection
--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
toChristopher Calhoun said:How do I determine the last column in a datagrid with auto-generated
columns. I need to use the column.AddAt method to add a button column
theend of the columns.
In my case this must be done programmatically.
So If I know the last index I can do i that way..
Thanks in Advance!
Does anyone know how to add a column to the end of a datagrid.
Thanks in Advance.
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.