Datagrid and Hyperlinks,,,

S

Steve Randall

I have a bound datagrid in which I want the first column
to be a hyperlink column. The column value is in my
dataset used to populate the grid and is called "Student
ID" which I specify in the "Text field" property of the
hyperlink column (that I manually add).

This all works fine except the Student ID column which is
in my dataset appears TWICE, once as the hyperlink column
and once as the dataset column. How can I allow the
hyperlinked "Student ID" column and hide the
bound "Student ID" column? I have tried the .Visible
property but it only returns 0 (zero) as the number of
columns after the BindData() even though the grid contains
4 columns.

Many thanks.
Steve
 
J

Jos Branders

Steve Randall said:
I have a bound datagrid in which I want the first column
to be a hyperlink column. The column value is in my
dataset used to populate the grid and is called "Student
ID" which I specify in the "Text field" property of the
hyperlink column (that I manually add).

This all works fine except the Student ID column which is
in my dataset appears TWICE, once as the hyperlink column
and once as the dataset column. How can I allow the
hyperlinked "Student ID" column and hide the
bound "Student ID" column? I have tried the .Visible
property but it only returns 0 (zero) as the number of
columns after the BindData() even though the grid contains
4 columns.

Many thanks.
Steve

Set AutoGenerateColumns=False on the DataGrid.
Then add all your columns as BoundColumn, except the Student ID column.
 

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

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top