Carlos kambui

Carlos kambui

  • 1.5k
  • 499
  • 98.4k

asp.net gridview

May 12 2016 8:02 AM
i have table student with 5 columns that is student_id,student_name,student_class,student_gender,student_position, i only want show 3 columns that is student_name,student_class ,student_position i use this query
select  student_name,student_class ,student_position from student,the issue is whenever i come to load my gridview i got the rest two columns what will i do to hide the 
have tried this but not working
gdvstudent.Columns[1].Visible=false;
but not working ,anybody with idea help please using asp.net c#

Answers (8)