gridview

Replacing Bitmap with Drawable in Drag and Drop Example

浪子不回头ぞ 提交于 2019-12-13 04:37:17
问题 I'm attempting to modify a drag and drop gridView example to use a specific drawable instead of the bitmap used in the example. I believe I'll need to edit the line: Bitmap bmp = Bitmap.createBitmap(150, 150, Bitmap.Config.RGB_565); and change it to something such as Bitmap bmp = R.drawable.sqwhite; but I don't think that's exactly what I'm looking for. Any suggestions? Source: public class DraggableGridViewSampleActivity extends Activity { static Random random = new Random(); static String[]

Remove duplication row in gridview

巧了我就是萌 提交于 2019-12-13 04:34:38
问题 I have four column, facilities_id , name , date and quantity for my gridview . My problem is it have same facilities_id in my result. So how can i settle it, anyone can help me? Thanks.. In additional, i hope can find the top 2 row in gridview. Mean just show up the top 2 row.. Thanks DataClassesDataContext db = new DataClassesDataContext(); var query = from p in db.Facilities join v in db.Reservations on p.facilities_id equals v.facilities_id join c in db.Reservation_Details on v.reservation

How to left align footer element in GridView

偶尔善良 提交于 2019-12-13 04:34:34
问题 I am getting problem in alignment of element that is in FooterTemplate of GridView. Anyone suggest me how to do it.The Code is: <asp:GridView ID="gvComment" runat="server" AutoGenerateColumns="false" OnRowDataBound="gvComment_RowDataBound" OnRowCreated="gvComment_RowCreated" Width="100%" ShowHeader="false" BorderWidth="0px" ShowFooter="true"> <Columns> <asp:TemplateField> <ItemTemplate> <table border="0" cellpadding="0" cellspacing="0" width="100%" > <tr> <td valign="middle" align="left"

Auto multiply two column in gridview

大憨熊 提交于 2019-12-13 04:34:15
问题 HI, I need to calculate values of two textboxex in gridview and display the result in the third textbox using javascript as soon as the value entered in second textbox. my textbox fields are: Quantity and Price The result should be displayed in Total. that is, (Total)Value= Quantity * Rate. I have tried this, CODE BEHIND:C# protected void gvPOItms__RowCreated(Object sender, GridViewRowEventArgs e) { try { TextBox txt1 = (TextBox)e.Row.FindControl("txtQty"); TextBox txt2 = (TextBox)e.Row

modalpopupextender in Gridview Not Showing

北战南征 提交于 2019-12-13 04:32:56
问题 Somebody pls help. Recently discovered Modalpopupextender and want to use it in my gridview. I want to an edit link button in my gridview. The link button when click should popup the Modalpopupextender . My problem now is that, the Modalpopupextender does not popup when i click the link button. Below is my code. <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Members.ascx.cs" Inherits="Debt.Members" %> <%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit"

Data source is an invalid type. It must be either an IListSource, IEnumerable, or IDataSource

人走茶凉 提交于 2019-12-13 04:28:47
问题 i am trying to fill one details view from the gridview selected index changing event,but i got an error,plz help me public void viewDetailsNew(decimal decDv) { SubjectInfo infosubject = new SubjectInfo(); SubjectSp spcubject = new SubjectSp(); dvSubject.DataSource = spcubject.SubjectViewDetails(decDv); dvSubject.DataBind(); mvSubject.ActiveViewIndex = 1; } public SubjectInfo SubjectViewDetails(decimal decsubjectid) { SubjectInfo infosubject = new SubjectInfo(); SqlDataReader sqlreader = null;

ModalPopupExtender open onclick of GridView row problems

时光怂恿深爱的人放手 提交于 2019-12-13 04:27:29
问题 (I'm using Lukinha RS's solution to the row onclick functionality) When I click on a row within the gridview I get a postback before the ModalPopupExtender opens, I dont want the postback however as you see the method I use is the cause. Unfortunatly it is the only way I have been able to get an onClick applied to a gridview row to open the MPE. Another problem I have is with the MPE open - I click a 'close' button on the popup panal it simply reloads the page resulting with the same popup

GridView example not working

北慕城南 提交于 2019-12-13 04:26:45
问题 I am taking help from this link: Android GridView Layout Tutorial. When I run my app my app stop working. I am getting following errors. I want to create gridview that show thumbnail images in gridview and full size image on click. For this I am saving thumbnail and full image of each image in drawable. How to do this? please help me. ImageAdapter class- public class ImageAdapter extends BaseAdapter { private Context mContext; public Integer[] mThumbIds = { R.drawable.kri1, R.drawable.kri2, R

GridView Click not working

扶醉桌前 提交于 2019-12-13 04:26:24
问题 I have the following layout . What I'm trying to achieve is 7 horizontal scrollablelayouts with an "ImageView" and a gridview in each. When I click on each of the 7 gridviews I'm hoping to start another activity. Problem is setting onClickListener on each of the 7 gridView is not working , the OnItemClickListener is never called. the click is not registering apparently. I'm not sure what is going wrong. I saw a few posts which said that click is going to some other child item-- ?? i'm not

How to set field values equal to null in RowUpdating(…)

半世苍凉 提交于 2019-12-13 04:25:49
问题 This is my code: protected void ConfigurationGridView_RowUpdating(object sender, GridViewUpdateEventArgs e) { // row's Update button is clicked, but before the GridView control // updates the row DropDownList ddlst = ((DropDownList)ConfigurationGridView.Rows[e.RowIndex].FindControl("SubUnitDropDownList")); if (ddlst != null) { ListItem li = ddlst.SelectedItem; if (li != null) { if (Convert.ToInt32(li.Value) == -1) { // next line is where the problem is // null doesn't change the old value //