I have 2 questions
1. in my gridview how am I change the column width, I want to write the width to each column.
here is my code:
2 in comboboxCode:<Columns > <asp:BoundField DataField="courseID" HeaderText="קוד" ReadOnly="True" SortExpression="courseID" /> <asp:BoundField DataField="areaName" HeaderText="אזור" SortExpression="areaName" /> <asp:BoundField DataField="dayWeek" HeaderText="ימים בשבוע" SortExpression="dayWeek" /> <asp:BoundField DataField="place" HeaderText="מקום" SortExpression="place" /> <asp:BoundField DataField="lecturer" HeaderText="מרצה" SortExpression="lecturer" /> <asp:BoundField DataField="subject" HeaderText="נושא ההרצאה" SortExpression="subject" /> <asp:BoundField DataField="destination" HeaderText="קהל יעד" SortExpression="destination" /> <asp:BoundField DataField="bigTime" HeaderText="עיתוי" SortExpression="bigTime" /> <asp:BoundField DataField="smallTime" HeaderText="שעה" SortExpression="smallTime" /> <asp:BoundField DataField="oneTime" HeaderText="תדירות" SortExpression="oneTime" /> <asp:BoundField DataField="category" HeaderText="קטגוריה" SortExpression="category" /> </Columns>
when I write DropDownList1.text I got the value ( 0 or 1)Code:<asp:DropDownList ID="DropDownList1" runat="server" Width="144px" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" > <asp:ListItem Value = 0>aaaa</asp:ListItem> <asp:ListItem Value = 1>bbbb</asp:ListItem>
how can I get the text write "aaaa" or "bbbb"
thanks!


Reply With Quote

