Violeta Popa

Violeta Popa

  • NA
  • 137
  • 161.1k

datagridview bounded to a dataset

Jun 24 2013 12:23 PM
Hello everyone :)

I'm working on a web application and I have a datagridview which is bounded to a dataset. It's working..but i need to put a condition to one of the columns..and i don't know how because the variable type refers to a columns in a table from the database. Please help!

 <Columns>
      <asp:BoundField HeaderText="ASIGURAT" DataField="denumire" ItemStyle-Width="5px"/>
      <asp:BoundField HeaderText="SERIE" DataField="serie"/>
      if type=1
                <asp:BoundField HeaderText="NUMAR" DataField="numar" />
       else if type=2
                <asp:BoundField HeaderText="NUMAR" DataField="numar_asigurat" />
<Columns/>

Answers (1)