Getting the column Index of a datagrid control

S

Sudhir Kesharwani

Hi All,

I am developing a custom grid view control, which displays a
checkbox...grid control is bound to a datasource.

i am writing a custom method for the datagrid, where in user can get
the value of any field (for the selcted row)

say something like GetSelectedFieldValue(field as string)

user will just pass the field name as string and the control should
first get the column index out of the field name and then return the
value for the selected row...

just let me know how should i convert the field name to actual datagrid
column index.

thanks,
sudhir kesharwani
 

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

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,280
Latest member
BGBBrock56

Latest Threads

Top