Ok I can’t seem to figure this one out..I have 1 table which has column id, parentid
this allows an option to have a sub-option. So it would be something like this:
id | parentid
1 | null
2 | null
3 | 1
How I need it to show in my gridview is like this:
id | parentid
1 | null
3 | 1
2 | null
any ideas I would be most greatful..and just in case I have searched and tried Sql COALESCE on the select but that didn’t work either..
I would use a ListView or DataList instead of a GridView. This should put you on the right path:
And when the user clicks the LinkButton/Button in DataList1, do something like this: