Click here to Skip to main content
15,886,362 members
Home / Discussions / C#
   

C#

 
AnswerRepost Pin
Richard Deeming22-Mar-16 6:27
mveRichard Deeming22-Mar-16 6:27 
QuestionHandling Cross thread Pin
pradipkilledar22-Mar-16 2:09
pradipkilledar22-Mar-16 2:09 
AnswerRe: Handling Cross thread Pin
Richard Deeming22-Mar-16 2:58
mveRichard Deeming22-Mar-16 2:58 
GeneralRe: Handling Cross thread Pin
pradipkilledar27-Mar-16 22:22
pradipkilledar27-Mar-16 22:22 
GeneralRe: Handling Cross thread Pin
Richard Deeming29-Mar-16 1:45
mveRichard Deeming29-Mar-16 1:45 
QuestionGet Picture Using PictureBox Handle Pin
Django_Untaken21-Mar-16 7:29
Django_Untaken21-Mar-16 7:29 
AnswerRe: Get Picture Using PictureBox Handle Pin
User 740747021-Mar-16 8:43
User 740747021-Mar-16 8:43 
QuestionI want to generator serial numbers for rows in datagrid Pin
Engr. Yange21-Mar-16 3:06
Engr. Yange21-Mar-16 3:06 
I have a datagrid with records and i wish to generate serial numbers automatically at the last column
My datagrid is given below

<asp:GridView ID="grid" runat="server" AutoGenerateColumns="False"
HeaderStyle-BorderColor="#996633" Width="98%" AllowPaging="True"
BackColor="White" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px"
CellPadding="3" ForeColor="Black"
onpageindexchanging="grid_PageIndexChanging" PageSize="20"
AllowSorting="True" onrowediting="grid_RowEditing"
onrowupdating="grid_RowUpdating">
<AlternatingRowStyle BackColor="#CCCCCC" />
<Columns>
<asp:BoundField HeaderText ="Reg. No"
ControlStyle-Width ="10%" DataField="AdmNo" SortExpression="AdmNo" >
<ControlStyle Width="20%"></ControlStyle>
<ItemStyle Width="10%" />
</asp:BoundField>
<asp:BoundField HeaderText ="Ass(1)"
ControlStyle-Width = "10%" DataField="Ass1" SortExpression="Ass1" >
<ControlStyle Width="15%"></ControlStyle>
<ItemStyle Width="10%" />
</asp:BoundField>
<asp:BoundField HeaderText ="Ass(2)"
ControlStyle-Width = "10%" DataField="Ass2" SortExpression="Ass2" >
<ControlStyle Width="15%"></ControlStyle>
<ItemStyle Width="10%" />
</asp:BoundField>
<asp:BoundField HeaderText ="Test(1)"
ControlStyle-Width = "15%" DataField="Test1" SortExpression="Test1" >
<ControlStyle Width="15%"></ControlStyle>

<ItemStyle Width="10%" />
</asp:BoundField>
<asp:BoundField HeaderText ="Test(2)"
ControlStyle-Width = "5%" DataField="Test2" SortExpression="Test2" >
<ControlStyle Width="5%"></ControlStyle>
<ItemStyle Width="10%" />
</asp:BoundField>
<asp:BoundField HeaderText ="Exams"
ControlStyle-Width = "35%" DataField="Exams" SortExpression="Exams" >
<ControlStyle Width="15%"></ControlStyle>
<ItemStyle Width="10%" />
</asp:BoundField>
<asp:BoundField HeaderText ="Total"
ControlStyle-Width = "5%" DataField="Total" SortExpression="Total">
<ControlStyle Width="5%"></ControlStyle>
<ItemStyle Width="5%" />
</asp:BoundField>
<asp:BoundField HeaderText ="Grade"
ControlStyle-Width = "5%" DataField="Grade" SortExpression="Grade" >
<ControlStyle Width="5%"></ControlStyle>
<ItemStyle Width="10%" />
</asp:BoundField>
<asp:BoundField HeaderText ="Remark"
ControlStyle-Width = "5%" DataField="Remark" SortExpression="Remark" >
<ControlStyle Width="5%"></ControlStyle>
<ItemStyle Width="10%" />
</asp:BoundField>
<asp:BoundField HeaderText ="Position"
ControlStyle-Width = "5%" DataField="ClassPosition">
<ControlStyle Width="5%"></ControlStyle>
<ItemStyle Width="10%" />
</asp:BoundField>
<asp:CommandField ShowEditButton="True" ShowCancelButton="False"
ButtonType="Button" />
</Columns>

<FooterStyle BackColor="#CCCCCC" />

<HeaderStyle BorderColor="#996633" BackColor="Black" ForeColor="White" Font-Bold="True"></HeaderStyle>
<PagerStyle BackColor="#990000" ForeColor="White" HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
<SortedDescendingCellStyle BackColor="#CAC9C9" />
</asp:GridView>
AnswerRe: I want to generator serial numbers for rows in datagrid Pin
Eddy Vluggen22-Mar-16 7:17
professionalEddy Vluggen22-Mar-16 7:17 
QuestionUpdating the UI from a Rx background thread Pin
Kenneth Haugland20-Mar-16 23:38
mvaKenneth Haugland20-Mar-16 23:38 
AnswerRe: Updating the UI from a Rx background thread Pin
Luc Pattyn21-Mar-16 15:10
sitebuilderLuc Pattyn21-Mar-16 15:10 
GeneralRe: Updating the UI from a Rx background thread Pin
Kenneth Haugland21-Mar-16 19:16
mvaKenneth Haugland21-Mar-16 19:16 
GeneralRe: Updating the UI from a Rx background thread Pin
Luc Pattyn21-Mar-16 19:35
sitebuilderLuc Pattyn21-Mar-16 19:35 
GeneralRe: Updating the UI from a Rx background thread Pin
Kenneth Haugland21-Mar-16 20:24
mvaKenneth Haugland21-Mar-16 20:24 
AnswerRe: Updating the UI from a Rx background thread Pin
Kenneth Haugland21-Mar-16 23:07
mvaKenneth Haugland21-Mar-16 23:07 
AnswerRe: Updating the UI from a Rx background thread Pin
Kenneth Haugland22-Mar-16 23:56
mvaKenneth Haugland22-Mar-16 23:56 
QuestionIntermittent problem with design-time display of inherited UserControls in VS 2013 Pin
BillWoodruff19-Mar-16 4:36
professionalBillWoodruff19-Mar-16 4:36 
AnswerRe: Intermittent problem with design-time display of inherited UserControls in VS 2013 Pin
OriginalGriff19-Mar-16 5:23
mveOriginalGriff19-Mar-16 5:23 
GeneralRe: Intermittent problem with design-time display of inherited UserControls in VS 2013 Pin
BillWoodruff19-Mar-16 8:30
professionalBillWoodruff19-Mar-16 8:30 
Questionproblem asked in SIEMENS. Pin
Member 1240313019-Mar-16 0:27
Member 1240313019-Mar-16 0:27 
GeneralRe: problem asked in SIEMENS. Pin
Sascha Lefèvre19-Mar-16 0:32
professionalSascha Lefèvre19-Mar-16 0:32 
AnswerRe: problem asked in SIEMENS. Pin
Richard MacCutchan19-Mar-16 0:37
mveRichard MacCutchan19-Mar-16 0:37 
AnswerRe: problem asked in SIEMENS. Pin
Patrice T19-Mar-16 12:05
mvePatrice T19-Mar-16 12:05 
Questionsorting records in datagrid Pin
Engr. Yange18-Mar-16 20:05
Engr. Yange18-Mar-16 20:05 
AnswerRe: sorting records in datagrid Pin
Mycroft Holmes18-Mar-16 21:43
professionalMycroft Holmes18-Mar-16 21:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.